]> git.proxmox.com Git - mirror_zfs.git/commit
Install basename utility into dracut initramfs
authorSteffen Müthing <steffen.muething@iwr.uni-heidelberg.de>
Wed, 30 May 2018 00:32:05 +0000 (02:32 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 May 2018 00:32:05 +0000 (17:32 -0700)
commit3c28c636424f26b5638e27d238fd52e6598e9900
tree181e5580ab20d21ff78194ee7c399848c8574427
parent93ce2b4ca5a40c41ac945cd3aaf4a4a22bb751e1
Install basename utility into dracut initramfs

vdev_id requires the program `basename` when handling short aliases
defined in `vdev_id.conf` (those defined without a leading path), but
`basename` is not always available in the dracut environment. This
causes the pool device names to change when using `by-vdev/` devices
or (in extreme cases) can make the pool import fail in dracut.

This commit fixes the problem by explicitly installing `basename`.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Steffen Müthing <steffen.muething@iwr.uni-heidelberg.de>
Closes #7562
contrib/dracut/90zfs/module-setup.sh.in