From d19a6d5c80fb24451a7d76716eaf38d3a3f933c7 Mon Sep 17 00:00:00 2001 From: Karsten Kretschmer Date: Fri, 4 Aug 2017 20:14:48 +0200 Subject: [PATCH] dracut: Install commands required for vdev_id The vdev_id script requires awk, grep, and head. Use dracut_install to ensure that these commands are available in the initrd environment. Reviewed-by: Brian Behlendorf Signed-off-by: Karsten Kretschmer Closes #6443 Closes #6452 --- contrib/dracut/90zfs/module-setup.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in index a653b50f4b..9bbee0e574 100755 --- a/contrib/dracut/90zfs/module-setup.sh.in +++ b/contrib/dracut/90zfs/module-setup.sh.in @@ -52,6 +52,8 @@ install() { fi dracut_install @sbindir@/mount.zfs dracut_install @udevdir@/vdev_id + dracut_install awk + dracut_install head dracut_install @udevdir@/zvol_id inst_hook cmdline 95 "${moddir}/parse-zfs.sh" if [ -n "$systemdutildir" ] ; then