summaryrefslogtreecommitdiff
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-09-08 13:19:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:47:20 +0100
commitdfd6d4c765924f472ac2df724342547b5c15249a (patch)
tree3eb9a21987b1db67a2aa153eeaaafc524a302c60 /meta/recipes-core/initrdscripts
parenta09f10f9360862c16fb68972ac041d474d6e3a64 (diff)
downloadopenembedded-core-dfd6d4c765924f472ac2df724342547b5c15249a.tar.gz
openembedded-core-dfd6d4c765924f472ac2df724342547b5c15249a.tar.bz2
openembedded-core-dfd6d4c765924f472ac2df724342547b5c15249a.zip
initramfs-framework: support init boot parameter
It can be useful for debugging to override the default /sbin/init. This is something typically done via the init boot parameter which then gets interpreted by the kernel. But when using an initramfs, it is the initramfs which must react to the option. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/finish2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish
index a8806aa3af..e712ff03c6 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/finish
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish
@@ -53,7 +53,7 @@ finish_run() {
mount --move /sys $ROOTFS_DIR/sys
cd $ROOTFS_DIR
- exec switch_root -c /dev/console $ROOTFS_DIR /sbin/init
+ exec switch_root -c /dev/console $ROOTFS_DIR ${bootparam_init:-/sbin/init}
else
debug "No rootfs has been set"
fi