diff --git a/contrib/initramfs/scripts/zfs b/contrib/initramfs/scripts/zfs index d74b2062a..701e45e67 100644 --- a/contrib/initramfs/scripts/zfs +++ b/contrib/initramfs/scripts/zfs @@ -273,6 +273,8 @@ import_pool() # with more logging etc. load_module_initrd() { + [ -n "$ROOTDELAY" ] && ZFS_INITRD_PRE_MOUNTROOT_SLEEP="$ROOTDELAY" + if [ "$ZFS_INITRD_PRE_MOUNTROOT_SLEEP" -gt 0 ] 2>/dev/null then if [ "$quiet" != "y" ]; then