diff options
author | kpande <[email protected]> | 2018-03-22 13:14:29 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-03-22 10:14:29 -0700 |
commit | 05747eca5b29696ae74532196d8fdc3edff36939 (patch) | |
tree | b3f3d6f84dab70e2f12d84992b73b801f58a29af | |
parent | 2fd92c3d6c7fba9a28ce4779ff6623dc911e7b78 (diff) |
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 <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Signed-off-by: Kash Pande <[email protected]>
Closes #7322
-rwxr-xr-x | contrib/dracut/90zfs/mount-zfs.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/dracut/90zfs/mount-zfs.sh.in b/contrib/dracut/90zfs/mount-zfs.sh.in index dae33d8a6..8ae092c3d 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 |