[oe-commits] Patrick Ohly : initramfs-framework: better error reporting for invalid root boot parameter
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 21 14:33:45 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 8e0aa1da9ee1dd1f90a10e2deecde0eebe0bb210
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8e0aa1da9ee1dd1f90a10e2deecde0eebe0bb210
Author: Patrick Ohly <patrick.ohly at intel.com>
Date: Fri Sep 18 13:49:22 2015 +0200
initramfs-framework: better error reporting for invalid root boot parameter
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 at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-core/initrdscripts/initramfs-framework/finish | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish
index e712ff0..d09bbb8 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/finish
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish
@@ -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
More information about the Openembedded-commits
mailing list