commit:     55a0c13d2bc83f1d23191c16a666f0feedf3f461
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 19:34:23 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 19:34:23 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=55a0c13d

linuxrc: Set got_good_root=1 when we got root via LABEL|UUID|PARTUUID

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/linuxrc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/defaults/linuxrc b/defaults/linuxrc
index 01f8328..83b7572 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -628,8 +628,10 @@ do
 
                                        if [ ${retval} -eq 0 ] && [ -n 
"${ROOT_DEV}" ]
                                        then
+                                               got_good_root=1
                                                good_msg "Detected 
real_root=${ROOT_DEV}"
                                                REAL_ROOT="${ROOT_DEV}"
+                                               break
                                        else
                                                prompt_user "REAL_ROOT" "root 
block device"
                                                got_good_root=0

Reply via email to