Fix passing --args without copy-default

Fix so that --args are not passed by default if copy-default is not used.
Set root when --args are passed without copy-default.
This commit is contained in:
Marta Lewandowska 2022-10-04 13:08:06 +00:00
parent 0da23ad751
commit 2f6207731e

View File

@ -827,13 +827,12 @@ fi
remove_var_prefix "$(get_prefix)"
if [[ -n $kernel ]]; then
if [[ $copy_default = "true" ]]; then
opts="${bls_options[$default_index]}"
if [[ -n $args ]]; then
opts="${opts} ${args}"
fi
else
opts="${args}"
opts="${bls_options[$default_index]}"
if [[ $copy_default != "true" ]]; then
opts=$(echo $opts | sed -e 's/ .*//')
fi
if [[ -n $args ]]; then
opts="${opts} ${args}"
fi
add_bls_fragment "${kernel}" "${title}" "${opts}" "${initrd}" \