aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-05-28 13:55:12 +0200
committerBrian Behlendorf <[email protected]>2021-05-29 21:32:48 -0700
commit7b5bf4758b034e4b12c20f3f99d09677678a3fa4 (patch)
tree325d05bf8c6ea65f1f376883c86c395044f6e6ed
parentd484a7255b8fcc31e3602bb89b0b54a994f48d17 (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
-rw-r--r--contrib/initramfs/scripts/zfs2
1 files changed, 2 insertions, 0 deletions
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