mount /dev/mapper/live-rw /mnt #also tried mount /dev/mappe/rl_localhost--live-root /mnt
mount /dev/sdb2 /mnt/boot
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
mount -o bind /run /mnt/run
dnf reinstall shim-* grub2-efi-* grub2-common
grub2-mkconfig -o /boot/EFI/rocky/grub.cfg
The error msg is
/usr/sbin/grub2-probe: error: failed to get canonical path of ‘/dev/mapper/live-rw’
I’d tried to mount /dev/sdb6; /dev/mapper/live-base (this mount become read only) to /mnt respectively and doesn’t help.
After exit chroot, tried to deactiveate Volume group
vgchange -an rl_localhost-live
Logical volumen rl_localhost-live/swap in use
Can’t deactive volume group “rl_localhost-live” with 1 open logical volume
lvchange -an /dev/rl_localhost-live/swap
Logical volume /dev/rl_localhost-live/swap in use.
Hope that someone can provide hints on how to restore the RL instead of reinstall it from scratch. Thank you.
That’s because you over wrote it with your prior grub2-mkconfig command. What I posted above are the entire contents of the EFI/rocky/grub.cfg stub file. It needs to point to the /boot partition UUID. The error message, which I am not familiar with may be related to it not finding /boot when you are trying to fix this. I didn’t see that you mounted that partition in the initial post. I don’t know how to mount volumes, someone else will have to show the way.
Thank you! You had help me on the correct location of the grub.cfg.
I’m still fighting with the error message which looks like relate to LVM problem.
Looks like reinstalling the RL is the only way out.