diff options
author | Richard Yao <ryao@gentoo.org> | 2020-06-03 22:22:28 -0400 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-06-12 16:55:32 +0200 |
commit | 94edd477e491da2b900e6d1b1d71884081cf09ab (patch) | |
tree | 8c46cf02af09458f7b98524148c0e2b514dd8b73 /defaults | |
parent | Document lz4 compression support (diff) | |
download | genkernel-94edd477e491da2b900e6d1b1d71884081cf09ab.tar.gz genkernel-94edd477e491da2b900e6d1b1d71884081cf09ab.tar.bz2 genkernel-94edd477e491da2b900e6d1b1d71884081cf09ab.zip |
defaults/linuxrc: Disable unnecessary udev timeout in zpool import
This is a regression that was introduced in sys-fs/zfs-kmod-0.7.0.
It was originally fixed by 2eb1d04cfbfa397b58a0b388f8ed28688fd114d8, but
this neglected to handle the case where booting is done via arguments
such as "root=ZFS" or "root=ZFS=rpool/ROOT/gentoo" on the kernel
commandline. This handles it.
Signed-off-by: Richard Yao <ryao@gentoo.org>
Closes: https://github.com/gentoo/genkernel/pull/16
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults')
-rw-r--r-- | defaults/initrd.scripts | 2 | ||||
-rw-r--r-- | defaults/linuxrc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 514a8bce..2e3632bf 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -1630,6 +1630,7 @@ start_volumes() { if [ "${USE_ZFS}" = '1' ] then + export ZPOOL_IMPORT_UDEV_TIMEOUT_MS=0 # Avoid race involving asynchronous module loading if call_func_timeout waitForZFS 5 then @@ -1679,6 +1680,7 @@ start_volumes() { fi fi fi + unset ZPOOL_IMPORT_UDEV_TIMEOUT_MS fi } diff --git a/defaults/linuxrc b/defaults/linuxrc index 964a9326..e90bd349 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -128,7 +128,6 @@ do ;; dozfs*) USE_ZFS=1 - export ZPOOL_IMPORT_UDEV_TIMEOUT_MS=0 case "${x#*=}" in *force*) |