]> git.proxmox.com Git - mirror_zfs.git/commit
rootdelay on zfs should be adaptive
authorGeorge Wilson <george.wilson@delphix.com>
Thu, 2 Feb 2023 23:11:35 +0000 (18:11 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 23:11:35 +0000 (15:11 -0800)
commitf18e083bf8ce0c0d1997002f9986122be6d4ebe8
tree94c9d7508f31a33dc737ca1938c98907c3789c9d
parent05b72415d16e3cfbdeb0f59d5f24640f10ee34d6
rootdelay on zfs should be adaptive

The 'rootdelay' boot option currently pauses the boot for a specified
amount of time. The original intent was to ensure that slower
configurations would have ample time to enumerate the devices to make
importing the root pool successful. This, however, causes unnecessary
boot delay for environments like Azure which set this parameter by
default.

This commit changes the initramfs logic to pause until it can
successfully load the 'zfs' module. The timeout specified by
'rootdelay' now becomes the maximum amount of time that initramfs will
wait before failing the boot.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Prakash Surya <prakash.surya@delphix.com>
Signed-off-by: George Wilson <gwilson@delphix.com>
Closes #14430
contrib/initramfs/scripts/zfs