On 8/4/24 08:22, Andrei Borzenkov wrote:
On 04.08.2024 14:57, Mark Hounschell wrote:
I updated a 15.5 box to 15.6 via the "zypper dup" method referenced at
https://en.opensuse.org/SDB:System_upgrade.

#init 3

#sed -i 's/15.5/${releasever}/g' /etc/zypp/repos.d/*.repo
#zypper --releasever=15.6 refresh
#zypper --releasever=15.6 dup

No errors. Then rebooted.

It hangs at grub:

GRUB loading.

Welcome to GRUB!

error: ../../grub=core/kern/dl.c:380:symbol 'grub_verify_string" not found.
Entering rescue mode...

grub rescue>


Boot device your BIOS booted from does not match bootloader location configured in openSUSE.


So I tried to reinstall grub from rescue mode of the install media.

#fdisk -l /dev/sda

Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Disk model: INTEL SSDSC2CW06
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000ab703

Device     Boot    Start       End   Sectors  Size Id Type
/dev/sda1           2048   2105343   2103296    1G 83 Linux
/dev/sda2        2105344  10489855   8384512    4G 82 Linux swap / Solaris
/dev/sda3  *    10489856 117229567 106739712 50.9G 83 Linux

tty1:rescue:~ #grub2-install --force /dev/sda ( I tried sda, sda1, and sda3)
Installing bootloader into some random location is not going to fix anything. Your BIOS most certainly will not attempt to boot from sda1 or sda3.


Installing for i386 platform.

grub2-install: error: failed to get cononical path of 'tmpfs'


How to fix this?


You need to chroot into your system with usual bind mounts for /sys, /proc, /dev and for good measure /run. And then check what bootloader location is configured to avoid the same problem in the future.



Executing the "grub2-install" command from the chroot'd env is all it took to fix my problem.


Regards

Mark