aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-01-05 21:45:51 +0100
committerThomas Deutschmann <whissi@gentoo.org>2020-01-05 21:57:16 +0100
commitea892515ef3a46171d288d9c119defedf8dbee28 (patch)
tree49fcc470651760a9b62ad1482bc05be38559d645 /defaults/initrd.defaults
parentlinuxrc, initrd.scripts: allow PARTLABEL for root & resume (diff)
downloadgenkernel-ea892515ef3a46171d288d9c119defedf8dbee28.tar.gz
genkernel-ea892515ef3a46171d288d9c119defedf8dbee28.tar.bz2
genkernel-ea892515ef3a46171d288d9c119defedf8dbee28.zip
initrd.scripts: modules_scan(): Cache found rootfs
Calling findfs() isn't a cheap operation especially when slow media like optical drives are involved. WIth this change, a statefile (GK_ROOTFS_DETECTED_STATEFILE) will be created when rootfs was found which will allow us to skip further findfs() calls when present. Link: https://forums.gentoo.org/viewtopic-t-1105908.html Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults/initrd.defaults')
-rw-r--r--defaults/initrd.defaults1
1 files changed, 1 insertions, 0 deletions
diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults
index 268a7be..198800b 100644
--- a/defaults/initrd.defaults
+++ b/defaults/initrd.defaults
@@ -90,6 +90,7 @@ GK_NET_TIMEOUT_DHCP=10
GK_NET_TIMEOUT_INTERFACE=10
GK_PROMPT_FILE='/tmp/current_prompt'
GK_PROMPT_TIMEOUT=0
+GK_ROOTFS_DETECTED_STATEFILE="/tmp/rootfs.detected"
GK_SHELL_LOCKFILE='/tmp/rescueshell.lock'
GK_SSHD_LOCKFILE='/tmp/remote-rescueshell.lock'
GK_SSHD_PIDFILE='/var/run/dropbear.pid'