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:
parent
0da23ad751
commit
2f6207731e
13
grubby-bls
13
grubby-bls
@ -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}" \
|
||||
|
Loading…
Reference in New Issue
Block a user