Linux - Edit bootgrub2grub config grub2 mkconfig, Grub2-mkconfig is used to regenerate file
Edit bootgrub2grub config grub2 mkconfig
When you make changes in /etc/default/grub run below command to update /boot/grub2/grub.cfg# cat /etc/default/grub GRUB_HIDDEN_TIMEOUT=0 GRUB_TIMEOUT=20
Once you change timeout or add any additional parameter in CMDLINE
# grub2-mkconfig -o /boot/grub2/grub.cfg
why do we edit /etc/default/grub?
Changes or edit in grub.cfg will be lost anytime when grub2-mkconfig is used to regenerate the file, so care must be taken to reflect any manual changes in /etc/default/grub as well.
Run if you change or append any parameters in GRUB_CMDLINE_LINUX
# mkinitrd
You can also use dracut version instead of mkinitrd, below is an example
# dracut -kver 4.1x.8.-default
Troubleshoot with boot logs
# journalctl --this-boot --outout=short-monotonic --no-hostname | grep -i 'swap' # journalctl --catalog --boot
The topic on Linux - Edit bootgrub2grub config grub2 mkconfig is posted by - John
Hope you have enjoyed, Linux - Edit bootgrub2grub config grub2 mkconfigThanks for your time