From: Christos Gavros <gavrosc@yahoo.com>
To: openembedded-core@lists.openembedded.org
Cc: Christos Gavros <gavrosc@yahoo.com>,
Yoann Congal <yoann.congal@smile.fr>,
Randy MacLeod <randy.macleod@windriver.com>,
jbk <jbk@mm-software.com>, Raj Khem <raj.khem@gmail.com>,
Adrian Freihofer <adrian.freihofer@gmail.com>
Subject: [PATCH v2] initramfs-framework: remove hard dependency with busybox
Date: Mon, 7 Apr 2025 18:44:56 +0200 [thread overview]
Message-ID: <20250407164456.4845-1-gavrosc@yahoo.com> (raw)
In-Reply-To: 20250407164456.4845-1-gavrosc.ref@yahoo.com
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>
---
v1->v2
* the commit message is extended with more info
---
meta/recipes-core/initrdscripts/initramfs-framework/finish | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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() {
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
--
2.34.1
next parent reply other threads:[~2025-04-07 16:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250407164456.4845-1-gavrosc.ref@yahoo.com>
2025-04-07 16:44 ` Christos Gavros [this message]
2025-04-07 17:04 ` [PATCH v2] initramfs-framework: remove hard dependency with busybox Khem Raj
2025-04-08 0:19 ` Randy MacLeod
2025-04-08 1:34 ` Kevin Hao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250407164456.4845-1-gavrosc@yahoo.com \
--to=gavrosc@yahoo.com \
--cc=adrian.freihofer@gmail.com \
--cc=jbk@mm-software.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
--cc=randy.macleod@windriver.com \
--cc=yoann.congal@smile.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox