]> code.ossystems Code Review - openembedded-core.git/commitdiff
initrdscripts: Try to boot if boot label is unknown
authorDrew Moseley <drew_moseley@mentor.com>
Sat, 28 Jun 2014 21:57:34 +0000 (17:57 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Jun 2014 07:57:57 +0000 (08:57 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-live.sh

index 0be9b6fb488e010e5e969c489c47bd4e97825b64..28219641a4cb87be829cad09ef76358ab4297fa6 100644 (file)
@@ -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