Following a recent problematic patch (see https://forums.opensuse.org/showthread.php/548018-Kernel-preempt) my Opensuse Leap 15.2 system stalled during boot, then landed me at the grub prompt. So I booted to the rescue console and attempted to chroot to reinstall the bootloader.
I followed the instructions from the Opensuse docs here: https://doc.opensuse.org/documentation/leap/startup/html/book-opensuse-startup/cha-trouble.html#sec-trouble-data-recover-rescue-access
My harddrive setup is (from lsblk -f):
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0 squashfs
loop1 squashfs
loop2 squashfs
loop3 squashfs
loop4 squashfs
loop5 squashfs
sda iso9660 openSUSE-Leap-15.2-NET-x86_64695 2020-06-26-06-35-11-10
├─sda1 vfat C010-9270
└─sda2 iso9660 openSUSE-Leap-15.2-NET-x86_64695 2020-06-26-06-35-10-90
sr0
nvme0n1
├─nvme0n1p1 vfat 6AB3-3361 431.7M 16% /boot/efi
└─nvme0n1p2 LVM2_member harDiA-Ejfm-gK1T-1r5e-GDfj-6ML5-YxN6lv
├─vgopensuse-root ext4 64de3cdc-e29a-41d9-8a4f-bb4de263cf36 18.5G 82% /
├─vgopensuse-swap_1 swap ee7dc539-44a1-4236-ae1c-5f87d675782c
└─vgopensuse-VMBackup ext4 7b1086f0-677b-42f3-b220-36e5944967eb
When I run yast bootloader I receive the following error:
Error
Execution of command ""/usr/bin/grub2-editenv", "list"]]" failed.
Exit code: 1
Error output: /usr/bin/grub2-editenv: error: unknown filesystem.
When I run grub2-install -v /dev/nvme0n1p1 I get the following error before it quits:
...
grub2-install: info: /dev/mapper/vgopensuse-root is not present.
grub2-install: error: unknown filesystem.
Output of ls -l /dev/mapper/vgopensuse-root:
lrwxrwxrwx 1 root root 7 Dec 26 20:27 /dev/mapper/vgopensuse-root -> ../dm-0
I have also tried running grub2-mkconfig -o /boot/efi/EFI/opensuse/grub.cfg which produced the following:
/usr/bin/grub2-editenv: error: unknown filesystem.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.18-lp152.57-default
Found initrd image: /boot/initrd-5.3.18-lp152.57-default
/usr/sbin/grub2-probe: error: unknown filesystem.
Found linux image: /boot/vmlinuz-5.3.18-lp152.54-default
Found initrd image: /boot/initrd-5.3.18-lp152.54-default
Found linux image: /boot/vmlinuz-5.3.18-lp152.50-default
Found initrd image: /boot/initrd-5.3.18-lp152.50-default
/usr/bin/grub2-editenv: error: unknown filesystem.
done
This then booted to a grub menu, so some progress, but none of the entries would load giving the following error:
Loading Linux 5.3.18-lp152.57-default ...
error: file '/boot/vmlinuz-5.3.18-lp152.57-default' not found.
Loading initial ramdisk
error: you need to load the kernel first.
Any ideas?
(PS I have removed the preempt kernel that was automatically installed using zypper inside the chroot.)