mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
77524d791b
commit
04f4ef9766
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user