Skip to content

Commit

Permalink
systemd: service: fix calls to get commandline arg values
Browse files Browse the repository at this point in the history
It looks like getarg() and cmdline_arg() were ditched in favor of karg().
  • Loading branch information
dustymabe committed Jan 6, 2020
1 parent 6dd597a commit cdb76d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemd/coreos-installer-service
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ karg() {
}

karg_bool() {
local value=$(cmdline_arg "$@")
local value=$(karg "$@")
case "$value" in
""|0|no|off) return 1;;
*) return 0;;
Expand Down Expand Up @@ -82,7 +82,7 @@ fi
firstboot_args=""
for param in "${PERSIST_KERNEL_NET_PARAMS[@]}" "${PERSIST_DRACUT_NET_PARAMS[@]}"
do
value=$(getarg "${param}")
value=$(karg "${param}")
if [ -n "${value}" ]; then
firstboot_args+="${param}=${value} "
fi
Expand Down

0 comments on commit cdb76d0

Please sign in to comment.