aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-15 22:36:09 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-15 22:36:09 +0200
commita4f28d4f8d99fc9a06dec2eec8901c39120c88f7 (patch)
tree021dd485605faaadf3c1d93037ef165734c54d35
parentlinuxrc: Fix waiting on root (diff)
downloadgenkernel-a4f28d4f8d99fc9a06dec2eec8901c39120c88f7.tar.gz
genkernel-a4f28d4f8d99fc9a06dec2eec8901c39120c88f7.tar.bz2
genkernel-a4f28d4f8d99fc9a06dec2eec8901c39120c88f7.zip
linuxrc: Add catch all block to avoid unnecessary rootdelay for devices already present
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/linuxrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 5a95ece..d84cc65 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -668,6 +668,14 @@ do
fi
fi
;;
+ *)
+ if [ -b "${REAL_ROOT}" ]
+ then
+ got_good_root=1
+ good_msg "Detected real_root=${REAL_ROOT}"
+ break
+ fi
+ ;;
esac
if [ "${got_good_root}" != '1' ]