summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-01-05 21:53:09 +0100
committerThomas Deutschmann <whissi@gentoo.org>2020-01-05 21:57:17 +0100
commita6efe051a610e0ce6aa7eb36a40dfceba7065940 (patch)
tree428a0cb42cf90bb7b4327a1a97d6a60310f5f947 /defaults
parentinitrd.scripts: modules_scan(): Cache found rootfs (diff)
downloadgenkernel-a6efe051a610e0ce6aa7eb36a40dfceba7065940.tar.gz
genkernel-a6efe051a610e0ce6aa7eb36a40dfceba7065940.tar.bz2
genkernel-a6efe051a610e0ce6aa7eb36a40dfceba7065940.zip
linuxrc: Don't call findfs multiple times
"findfs" and "busybox findfs" is the same command. For $REAL_ROOT, this was already fixed via commit 9daa9b77165339495dd4cb35bd57237bd9ca9206. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults')
-rw-r--r--defaults/linuxrc6
1 files changed, 0 insertions, 6 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 50b99ded..f585017a 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -621,12 +621,6 @@ then
if [ ${retval} -ne 0 ]
then
- RESUME_DEV=$(busybox findfs "${REAL_RESUME}" 2>/dev/null)
- retval=$?
- fi
-
- if [ ${retval} -ne 0 ]
- then
RESUME_DEV=$(blkid -o device -l -t "${REAL_RESUME}" 2>/dev/null)
retval=$?
fi