]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
initramfs-framework: remove hard dependency with busybox
authorChristos Gavros <gavrosc@yahoo.com>
Mon, 7 Apr 2025 16:44:56 +0000 (18:44 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Apr 2025 10:49:15 +0000 (11:49 +0100)
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>
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>
meta/recipes-core/initrdscripts/initramfs-framework/finish

index ac0de9f996f83a1b7aae88ef5f61c7e6c43995d0..716c2f44af205b539891565988a04b8442fb5d1f 100755 (executable)
@@ -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