Init arguments cannot contain spaces
It does not seem possible to send a single argument through init_args
that contains spaces.
Even with something like init_args="\"hello world\""
, which sets $KOPT_init_args
to the literal string "hello world"
, when this gets interpolated into
exec /bin/busybox switch_root $sysroot $chart_init "$KOPT_init" $KOPT_init_args
it ends up being sent to the program as two arguments, "hello
and world"
.
This prevents doing something like /bin/sh -c "touch /foo && exec /sbin/init"
.