From ea921bf6a68c5d884ccad9ef4d5a23f76c4b51c4 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 e7f217736e..2c6020a4ba 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