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
@ -827,14 +827,13 @@ fi
|
|||||||
remove_var_prefix "$(get_prefix)"
|
remove_var_prefix "$(get_prefix)"
|
||||||
|
|
||||||
if [[ -n $kernel ]]; then
|
if [[ -n $kernel ]]; then
|
||||||
if [[ $copy_default = "true" ]]; then
|
|
||||||
opts="${bls_options[$default_index]}"
|
opts="${bls_options[$default_index]}"
|
||||||
|
if [[ $copy_default != "true" ]]; then
|
||||||
|
opts=$(echo $opts | sed -e 's/ .*//')
|
||||||
|
fi
|
||||||
if [[ -n $args ]]; then
|
if [[ -n $args ]]; then
|
||||||
opts="${opts} ${args}"
|
opts="${opts} ${args}"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
opts="${args}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
add_bls_fragment "${kernel}" "${title}" "${opts}" "${initrd}" \
|
add_bls_fragment "${kernel}" "${title}" "${opts}" "${initrd}" \
|
||||||
"${extra_initrd}"
|
"${extra_initrd}"
|
||||||
|
Loading…
Reference in New Issue
Block a user