mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02: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
|
mount --move /sys $ROOTFS_DIR/sys
|
||||||
|
|
||||||
cd $ROOTFS_DIR
|
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
|
else
|
||||||
debug "No rootfs has been set"
|
debug "No rootfs has been set"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user