commit: f60871ba99fac8e48b03d533a341a6e26ec398e3
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 7 21:02:47 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Oct 7 21:50:26 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=f60871ba
linuxrc: Update REAL_INIT variable when using fallback
When we detected that mounted root device doesn't contain a valid
init program (i.e. set init value isn't an executable file), we
didn't update REAL_INIT value with fallback value with the result
that we called switch_root with an invalid init parameter.
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
defaults/linuxrc | 1 +
1 file changed, 1 insertion(+)
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 852992d..83ef89f 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -882,6 +882,7 @@ do
if [ -f "${init_binary_fallback_file}" -a -x
"${init_binary_fallback_file}" ]
then
+
REAL_INIT="${init_binary_fallback_file/${NEW_ROOT}}"
good_msg "Executable fallback file
'${init_binary_fallback_file}' detected!" ${QUIET}
break
else