summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorSteffen Müthing <[email protected]>2018-05-30 02:32:05 +0200
committerBrian Behlendorf <[email protected]>2018-05-29 17:32:05 -0700
commit3c28c636424f26b5638e27d238fd52e6598e9900 (patch)
tree181e5580ab20d21ff78194ee7c399848c8574427 /contrib
parent93ce2b4ca5a40c41ac945cd3aaf4a4a22bb751e1 (diff)
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 <[email protected]> Signed-off-by: Steffen Müthing <[email protected]> Closes #7562
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/dracut/90zfs/module-setup.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in
index f5a6bcbd9..4e2edf1e8 100755
--- a/contrib/dracut/90zfs/module-setup.sh.in
+++ b/contrib/dracut/90zfs/module-setup.sh.in
@@ -58,6 +58,7 @@ install() {
dracut_install @mounthelperdir@/mount.zfs
dracut_install @udevdir@/vdev_id
dracut_install awk
+ dracut_install basename
dracut_install head
dracut_install @udevdir@/zvol_id
inst_hook cmdline 95 "${moddir}/parse-zfs.sh"