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>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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
fi
debug "Running ${module}_run"
- eval "${module}_run"
+ eval "${module}_run" "$@"
# post hooks
for h in $MODULE_POST_HOOKS; do