| Message ID | 20260116115619.2971573-1-u.oelmann@pengutronix.de |
|---|---|
| State | New |
| Headers | show |
| Series | [v2] initramfs-framework: add handover of PID 1's arguments | expand |
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish index 21eaa5739343..69d555368d4c 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 fe6e3cbf0782..51db083e2e53 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
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 <u.oelmann@pengutronix.de> --- v1 -> v2: - Add missing SoB. --- meta/recipes-core/initrdscripts/initramfs-framework/finish | 2 +- meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)