Patchwork initrdscripts: Try to boot if boot label is unknown

login
register
mail settings
Submitter Drew Moseley
Date June 28, 2014, 9:57 p.m.
Message ID <1403992654-7672-1-git-send-email-drew_moseley@mentor.com>
Download mbox | patch
Permalink /patch/74455/
State Accepted
Commit 184dddfb9a852d954900ff68abfdf36ea143a647
Headers show

Comments

Drew Moseley - June 28, 2014, 9:57 p.m.
The init-live.sh scripts assumes that the boot label set by
the LABELS variable is either "boot", "install", or
"install-efi".  If that variable is overridden to something else
we fall off the end of the case statement and the system locks
up.  If the boot label is unknown, at least attempt to boot.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
---
 meta/recipes-core/initrdscripts/files/init-live.sh | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 0be9b6f..2821964 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -220,4 +220,8 @@  case $label in
 	# If we're getting here, we failed...
 	fatal "Installation image failed"
 	;;
+    *)
+	# Not sure what boot label is provided.  Try to boot to avoid locking up.
+	mount_and_boot
+	;;
 esac