diff options
author | наб <[email protected]> | 2021-05-28 13:55:12 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-06-09 13:05:34 -0700 |
commit | 90d00230058c75ffe62419f844c511027e601e43 (patch) | |
tree | 3463a06a8e56dc7cd4e8be16eed8590ba00a0fec /contrib/initramfs/scripts | |
parent | dbfbc1e524f942ec986b37d4eab768e3b5e32970 (diff) |
i-t: let rootdelay= set $ZFS_INITRD_PRE_MOUNTROOT_SLEEP
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Ref: https://github.com/openzfs/zfs/issues/11420#issuecomment-850338673
Closes #11663
Closes #12148
Diffstat (limited to 'contrib/initramfs/scripts')
-rw-r--r-- | contrib/initramfs/scripts/zfs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/initramfs/scripts/zfs b/contrib/initramfs/scripts/zfs index b7e9e5703..11097f77f 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 |