Edit: Solution is to use UUID= for all mounted partitions in /etc/fstab
I have a machine with three SSD drives and four hard drives:
ASUS PRIME TRX40-PRO AMD Threadripper PCIe 4.0 ATX Motherboard
AMD Ryzen Threadripper 3970X 3.7GHz 32C/64T 128MB Cache, 280W CPU
Palit GeForce RTX2080 SUPER GameRock 8GB Graphics Card
/boot/EFI is mounted on a vfat partition nvme1n1p1 with Windows on nvme1n1p3
I have two root partitions (main and backup) on nvme0:
root1 is on nvme0n1p2 with UUID 1d91f854...
root2 is on nvme0n1p3 with UUID 10946a47...
(there are two other root partitions on nvme2)
These are copies of the same root partition, with custom /etc/fstab files, so I can boot from the menu into either root partition. I have a script to back up a root partition, so I can check if an update is OK and then back up root to another root partition.
Previously root1 was the first entry and root2 the second, and grub was reading /boot/grub2/grub.cfg on roo1 to provide the boot menu.
I booted into root2 to test the upgrade to Mageia 9. This seemed to go OK. When I rebooted I was surprised to see the first entry selected. I tried to boot from it and it failed: after the usual BIOS error messages
is says "You are in emergency mode. After logging in type "journalctl -xb" to view system logs,..."
I entered the root password to get a shell, rebooted and chose the second entry which booted into my old Mageia 8 root directory (which fortunately still seems to be working).
/boot/grub2/grub.cfg on root1 is unchanged, while there is a new file in /boot/grub2/grub.cfg on root2. The root2 file seems to be the one it is using for boot, since the second entry boots into roo1 while the first entry boots into root2 (and fails).
The file /boot/EFI/EFI/mageia/grubx64.efi has been updated.
I have attached a copy of the output of journalctl -xb, which I collected by booting into the root shell, a gzipped copy of this is attached.
Any help would be appreciated!
