Commit 40db80a2 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

add-kernel-options: fixed adding if GRUB_CMDLINE_LINUX_DEFAULT in double quotes (eterbug #17553)

parent 144d54ef
......@@ -123,7 +123,7 @@ kernel_options_add () {
if [ $bootloader = "systemd" ]; then
sed -i "/^$options/ s~\$~ $search_string~" "$entry_file"
else
sed -i "s|^\($options'.*\)'\$|\1 $search_string'|" "$entry_file"
sed -i "s|\(^$options[\"']\)\(.*\)\([\"']\)|\1\2 $search_string\3|" "$entry_file"
fi
echo "Added '$search_string' to the kernel boot parameters in $entry_file"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment