Rocky 9 Linux Booting Notes: Difference between revisions
mNo edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
FROM: https://forums.rockylinux.org/t/grub-empty-after-dnf-upgrade/18132/9 | FROM: https://forums.rockylinux.org/t/grub-empty-after-dnf-upgrade/18132/9 | ||
=== Commands === | ===Commands=== | ||
Makes the /grub2/grub.cfg file based on settings in /etc/default/grub file: grub2-mkconfig -o /boot/grub2/grub.cfg | Makes the /grub2/grub.cfg file based on settings in /etc/default/grub file: grub2-mkconfig -o /boot/grub2/grub.cfg | ||
| Line 33: | Line 33: | ||
set root=(hd0,gpt2) | set root=(hd0,gpt2) | ||
linux /vmlinuz root= | linux /vmlinuz root=/dev/mapper/NVMe.P3-LV.ROOT ro | ||
initrd /initramfs.img | initrd /initramfs.img | ||
| Line 52: | Line 52: | ||
configfile $prefix/grub.cfg | configfile $prefix/grub.cfg | ||
</syntaxhighlight> | </syntaxhighlight> | ||
...and for the above, look at that --set=dev UUID, make sure it is correct! | |||
==== ...and also, check the following; ==== | |||
Next time a new kernel is installed via DNF, make sure the /etc/default/grub and /etc/kernel/cmdline Files are configured properly. | |||
=== And for LVM Related items === | |||
If changing an LV or VG name; | |||
* fstab | |||
* /etc/default/grub | |||
* /etc/kernel/cmdline | |||
* grub-mkconfig OR edit /boot/grub2/grub.cfg | |||
* /boot/loader/entries | |||
=== And for the annoying TUNED or GRUB automatically added entries similar to what's in /boot/loader/entries === | |||
dnf remove tuned | |||
In /etc/default/grub, add: GRUB_DISABLE_OS_PROBER=true | |||
..then grub2-mkconfig -o /boot/grub2/grub.cfg | |||