From: Ulrich Ölmann Date: Fri, 16 Jan 2026 11:56:19 +0000 (+0100) Subject: initramfs-framework: add handover of PID 1's arguments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0ab3d1c4f9ed34d1d17e6534f42d17b3387ebb3;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git initramfs-framework: add handover of PID 1's arguments Although many PID 1 programs parse /proc/cmdline, let's follow the standard convention and forward the command-line arguments received from the kernel to the next PID 1 program. Signed-off-by: Ulrich Ölmann Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish index 21eaa57393..69d555368d 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/finish +++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish @@ -42,7 +42,7 @@ finish_run() { mount --move /run $ROOTFS_DIR/run cd $ROOTFS_DIR - exec switch_root $ROOTFS_DIR ${bootparam_init:-/sbin/init} + exec switch_root $ROOTFS_DIR ${bootparam_init:-/sbin/init} "$@" else debug "No rootfs has been set" fi diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index fe6e3cbf07..51db083e2e 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init @@ -154,7 +154,7 @@ for m in $MODULES_DIR/*; do fi debug "Running ${module}_run" - eval "${module}_run" + eval "${module}_run" "$@" # post hooks for h in $MODULE_POST_HOOKS; do