mirror of
https://git.yoctoproject.org/poky-contrib
synced 2025-05-08 23:52:25 +08:00
initramfs-framework: remove hard dependency with busybox
In 'finish'script the Switch_root command with option -c is busybox specific. When package-core-base-utils is selected the boot is breaking with message "Switch_root: invalid option — ‘c’.It was reproduced using qemu. Remove -c option to make it compatible with both providers. It is tested using qemu with busybox and package-core-base-utils. In both cases qemu boots successfully and filesystem is accessible. Fixes [YOCTO #15716] CC: Yoann Congal <yoann.congal@smile.fr> CC: Randy MacLeod <randy.macleod@windriver.com> CC: jbk <jbk@mm-software.com> CC: Raj Khem <raj.khem@gmail.com> CC: Adrian Freihofer <adrian.freihofer@gmail.com> (From OE-Core rev: 0f745024fd40518f98390008b4f613d5641df416) Signed-off-by: Christos Gavros <gavrosc@yahoo.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d4ca7bede8
commit
07b2d077c7
@ -41,7 +41,7 @@ finish_run() {
|
||||
mount --move /sys $ROOTFS_DIR/sys
|
||||
|
||||
cd $ROOTFS_DIR
|
||||
exec switch_root -c /dev/console $ROOTFS_DIR ${bootparam_init:-/sbin/init}
|
||||
exec switch_root $ROOTFS_DIR ${bootparam_init:-/sbin/init}
|
||||
else
|
||||
debug "No rootfs has been set"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user