summaryrefslogtreecommitdiffstats
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:48:43 +0100
commit04f4ef97660f2a3e9951019e929cb84149644037 (patch)
tree4ed21029dff7daad336e70c2a821ee069ff5d468 /meta/recipes-core/initrdscripts
parent77524d791b8320827518232ab4844f58574e0343 (diff)
downloadpoky-04f4ef97660f2a3e9951019e929cb84149644037.tar.gz
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. (From OE-Core rev: dfd6d4c765924f472ac2df724342547b5c15249a) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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() {
53 mount --move /sys $ROOTFS_DIR/sys 53 mount --move /sys $ROOTFS_DIR/sys
54 54
55 cd $ROOTFS_DIR 55 cd $ROOTFS_DIR
56 exec switch_root -c /dev/console $ROOTFS_DIR /sbin/init 56 exec switch_root -c /dev/console $ROOTFS_DIR ${bootparam_init:-/sbin/init}
57 else 57 else
58 debug "No rootfs has been set" 58 debug "No rootfs has been set"
59 fi 59 fi