Rocky 9 Linux Booting Notes: Difference between revisions
mNo edit summary |
|||
| 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! | |||