]> granicus.if.org Git - zfs/commitdiff
modprobe zfs during dracut mount
authorkpande <github@tripleback.net>
Thu, 22 Mar 2018 17:14:29 +0000 (13:14 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Mar 2018 17:14:29 +0000 (10:14 -0700)
Resolves importing root pool during boot in dracut.  This case was
inadvertently broken with the module autoloading change in #7287.

Reviewed-by: Matthew Thode <prometheanfire@gentoo.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Kash Pande <kash@tripleback.net>
Closes #7322

contrib/dracut/90zfs/mount-zfs.sh.in

index dae33d8a652e8135a25547f33ac908021bc05338..8ae092c3df3f4aa03b6a785b42d0c5b97baadb57 100755 (executable)
@@ -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