Commit b3d41e4b 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 dfdc44ce
...@@ -123,7 +123,7 @@ kernel_options_add () { ...@@ -123,7 +123,7 @@ kernel_options_add () {
if [ $bootloader = "systemd" ]; then if [ $bootloader = "systemd" ]; then
sed -i "/^$options/ s~\$~ $search_string~" "$entry_file" sed -i "/^$options/ s~\$~ $search_string~" "$entry_file"
else else
sed -i "s|^\($options'.*\)'\$|\1 $search_string'|" "$entry_file" sed -i "s|\(^$options[\"']\)\(.*\)\([\"']\)|\1\2 $search_string\3|" "$entry_file"
fi fi
echo "Added '$search_string' to the kernel boot parameters in $entry_file" echo "Added '$search_string' to the kernel boot parameters in $entry_file"
fi 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