aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/dracut/90zfs
diff options
context:
space:
mode:
authorKarsten Kretschmer <[email protected]>2017-08-04 20:14:48 +0200
committerBrian Behlendorf <[email protected]>2017-08-04 11:14:48 -0700
commitd19a6d5c80fb24451a7d76716eaf38d3a3f933c7 (patch)
tree2e1ab6c92bdf0742481d02060c73fd609483d238 /contrib/dracut/90zfs
parent1e1c398033384106c8ee96435ba0683797b41a46 (diff)
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 <[email protected]> Signed-off-by: Karsten Kretschmer <[email protected]> Closes #6443 Closes #6452
Diffstat (limited to 'contrib/dracut/90zfs')
-rwxr-xr-xcontrib/dracut/90zfs/module-setup.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in
index a653b50f4..9bbee0e57 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