Regenerate grub config after enabling verbose mode

This commit is contained in:
Manuel Thalmann 2024-04-23 15:36:14 +02:00
parent e38d2e66ee
commit 063fae07d8

View file

@ -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;