Skip to content

Commit

Permalink
fix(base): do not quote $CLINE in the set command
Browse files Browse the repository at this point in the history
This is needed to correctly parse init arguments.

Fixes: 2fabaaa
  • Loading branch information
konfetka1989 authored and LaszloGombos committed Mar 28, 2023
1 parent df2458a commit 8b951d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules.d/99base/init.sh
Expand Up @@ -328,7 +328,8 @@ if getarg init= > /dev/null; then
ignoreargs="console BOOT_IMAGE"
# only pass arguments after init= to the init
CLINE=${CLINE#*init=}
set -- "$CLINE"
# shellcheck disable=SC2086
set -- $CLINE
shift # clear out the rest of the "init=" arg
for x in "$@"; do
for s in $ignoreargs; do
Expand All @@ -339,7 +340,8 @@ if getarg init= > /dev/null; then
unset CLINE
else
debug_off # Turn off debugging for this section
set -- "$CLINE"
# shellcheck disable=SC2086
set -- $CLINE
for x in "$@"; do
case "$x" in
[0-9] | s | S | single | emergency | auto)
Expand Down

0 comments on commit 8b951d2

Please sign in to comment.