]> code.ossystems Code Review - openembedded-core.git/commitdiff
initramfs-framework: better error reporting for invalid root boot parameter
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 18 Sep 2015 11:49:22 +0000 (13:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Sep 2015 14:39:32 +0000 (15:39 +0100)
When the "boot" parameter refers to a non-existent device, the only
visible output at normal log levels was a rather confusing:
   ERROR: There's no '/dev' on rootfs.

That's because the actual error, not being able to find the root
device, was only a debug message, which gets ignored in the default
mode.

Promoting the "root '$bootparam_root' doesn't exist." message from
"debug" to "msg" gives sufficient context to understand the error. A
more intrusive change would be to change also the control flow.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/initramfs-framework/finish

index e712ff03c64e379115841e5c0742b79a9c6e197b..d09bbb8bed4dfd8eae29b2152e4857a054e31641 100755 (executable)
@@ -37,7 +37,7 @@ finish_run() {
                                fi
                                mount $flags $bootparam_root $ROOTFS_DIR
                        else
-                               debug "root '$bootparam_root' doesn't exist."
+                               msg "root '$bootparam_root' doesn't exist."
                        fi
                fi