diff options
author | Christos Gavros <gavrosc@yahoo.com> | 2025-04-07 18:44:56 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-11 11:49:59 +0100 |
commit | 07b2d077c79c44e9e224ef56f541d46591d4cde7 (patch) | |
tree | 4d80d47d546cd1a7d301375cf4b5b401e903d445 | |
parent | d4ca7bede803d0feaad486e47c04495d2d3b45df (diff) | |
download | poky-07b2d077c79c44e9e224ef56f541d46591d4cde7.tar.gz |
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>
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/finish | 2 |
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 ac0de9f996..716c2f44af 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/finish +++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish | |||
@@ -41,7 +41,7 @@ finish_run() { | |||
41 | mount --move /sys $ROOTFS_DIR/sys | 41 | mount --move /sys $ROOTFS_DIR/sys |
42 | 42 | ||
43 | cd $ROOTFS_DIR | 43 | cd $ROOTFS_DIR |
44 | exec switch_root -c /dev/console $ROOTFS_DIR ${bootparam_init:-/sbin/init} | 44 | exec switch_root $ROOTFS_DIR ${bootparam_init:-/sbin/init} |
45 | else | 45 | else |
46 | debug "No rootfs has been set" | 46 | debug "No rootfs has been set" |
47 | fi | 47 | fi |