Regenerate grub config after enabling verbose mode
This commit is contained in:
parent
e38d2e66ee
commit
063fae07d8
1 changed files with 1 additions and 0 deletions
|
@ -5,4 +5,5 @@ pattern="^\\(GRUB_CMDLINE_LINUX_DEFAULT=\".*\\)\\([[:space:]]quiet\\|quiet[[:spa
|
||||||
if grep "$pattern" "$configFile" > /dev/null
|
if grep "$pattern" "$configFile" > /dev/null
|
||||||
then
|
then
|
||||||
sudo sed -i "/$pattern/{ h; s/^\\(.*\\)$/#\\1/; p; x; s/$pattern/\\1\\3/; };" "$configFile";
|
sudo sed -i "/$pattern/{ h; s/^\\(.*\\)$/#\\1/; p; x; s/$pattern/\\1\\3/; };" "$configFile";
|
||||||
|
sudo grub-mkconfig -o /boot/grub/grub.cfg;
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue