From 05747eca5b29696ae74532196d8fdc3edff36939 Mon Sep 17 00:00:00 2001 From: kpande Date: Thu, 22 Mar 2018 13:14:29 -0400 Subject: [PATCH] modprobe zfs during dracut mount Resolves importing root pool during boot in dracut. This case was inadvertently broken with the module autoloading change in #7287. Reviewed-by: Matthew Thode Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Reviewed-by: Giuseppe Di Natale Signed-off-by: Kash Pande Closes #7322 --- contrib/dracut/90zfs/mount-zfs.sh.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/dracut/90zfs/mount-zfs.sh.in b/contrib/dracut/90zfs/mount-zfs.sh.in index dae33d8a65..8ae092c3df 100755 --- a/contrib/dracut/90zfs/mount-zfs.sh.in +++ b/contrib/dracut/90zfs/mount-zfs.sh.in @@ -34,6 +34,7 @@ info "ZFS: No sysroot.mount exists or zfs-generator did not extend it." info "ZFS: Mounting root with the traditional mount-zfs.sh instead." # Delay until all required block devices are present. +modprobe zfs 2>/dev/null udevadm settle if [ "${root}" = "zfs:AUTO" ] ; then