]> 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)
committerTony Hutter <hutter2@llnl.gov>
Tue, 8 May 2018 00:19:57 +0000 (17:19 -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 e7f217736e24b6ac391d44c7ffacc54579ef5f35..2c6020a4ba83daeab2e6fe98306ac8e1e5afd104 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