diff --git a/grubby-bls b/grubby-bls index 01b99bf..de75da6 100755 --- a/grubby-bls +++ b/grubby-bls @@ -492,7 +492,7 @@ update_bls_fragment() { fi if [[ $param = "ALL" && $bootloader = grub2 ]] && [[ -n $remove_args || -n $add_args ]]; then - local old_args="$(source ${grub_etc_default}; echo ${GRUB_CMDLINE_LINUX})" + local old_args="$(source ${grub_etc_default}; echo ${GRUB_CMDLINE_LINUX})" opts="$(update_args "${old_args}" "${remove_args}" "${add_args}")" opts=$(echo $opts | sed -e 's/\//\\\//g') sed -i -e "s/^GRUB_CMDLINE_LINUX.*/GRUB_CMDLINE_LINUX=\\\"${opts}\\\"/" "${grub_etc_default}"