Leap 15.6 install has lost other OS boot options

I recently installed Leap 15.6, over a Leap 15.5 installation. I have a Windows 11 install on another partition and Grub2 is no longer finding this, even with probe other OSs selected.

When I run efibootmgr it is found fine:

BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0001,0000,0003,0002
Boot0000* Windows Boot Manager
Boot0001* opensuse
Boot0002  Hard Drive
Boot0003* CD/DVD Drive
Boot0004* opensuse-secureboot

But it doesn’t come up at boot. I wasn’t expecting it to help, but I ran update-bootloader --install after efibootmgr and indeed it made no difference!

I have two raid setups across 4 HDDs for various partions, but both the Windows and OpenSUSE OSs are installed on an SDD. cfdisk output:

                                 Disk: /dev/nvme0n1
               Size: 465.76 GiB, 500107862016 bytes, 976773168 sectors
            Label: gpt, identifier: D88CAE17-7646-41E4-BF68-030C7848D415

    Device             Start       End   Sectors   Size Type
>>  /dev/nvme0n1p1      2048    923647    921600   450M Windows recovery environment 
    /dev/nvme0n1p2    923648   1128447    204800   100M Microsoft basic data
    /dev/nvme0n1p3   1128448   1161215     32768    16M Microsoft reserved
    /dev/nvme0n1p4   1161216 479515344 478354129 228.1G Microsoft basic data
    /dev/nvme0n1p5 479516672 481279999   1763328   861M Windows recovery environment
    Free space     481280000 481282047      2048     1M
    /dev/nvme0n1p6 481282048 858785791 377503744   180G Linux filesystem
    /dev/nvme0n1p7 858785792 925890559  67104768    32G Linux swap
    /dev/nvme0n1p8 925890560 976773119  50882560  24.3G Linux filesystem
 ┌─────────────────────────────────────────────────────────────────────────────────┐
 │  Partition name: Basic data partition                                           │
 │  Partition UUID: F1C0B712-E0CE-4278-83F6-35D2229F097B                           │
 │  Partition type: Windows recovery environment (DE94BBA4-06D1-4D40-A16A-BFD50179D│
 │      Attributes: RequiredPartition                                              │
 │ Filesystem UUID: C04A7CED4A7CE198                                               │
 │Filesystem LABEL: Recovery                                                       │
 └─────────────────────────────────────────────────────────────────────────────────┘

Hopefully there is a simple solution and I would be appreciative if someone can point me in the right direction.

If I manually run grub2-mkconfig I get:

Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-6.4.0-150600.23.38-default
Found initrd image: /boot/initrd-6.4.0-150600.23.38-default
Found linux image: /boot/vmlinuz-6.4.0-150600.23.33-default
Found initrd image: /boot/initrd-6.4.0-150600.23.33-default
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
61857.577012 | DM multipath kernel driver not loaded
Adding boot menu entry for UEFI Firmware Settings ...
done

(I then enabled multipath, but it made no difference to the output other than removing that warning)

Show efibootmgr -v.

Show lsblk -f -o +partuuid,parttype.

Where is ESP?
Can you boot Windows?

BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0001,0000,0003,0002
Boot0000* Windows Boot Manager  HD(2,GPT,bb0c9ac8-83ca-41f4-bdf6-3e106d8a0231,0xe1800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...7................
Boot0001* opensuse      HD(2,GPT,bb0c9ac8-83ca-41f4-bdf6-3e106d8a0231,0xe1800,0x32000)/File(\EFI\OPENSUSE\GRUBX64.EFI)
Boot0002  Hard Drive    BBS(HD,,0x0)..GO..NO..........S.a.m.s.u.n.g. .S.S.D. .9.6.0. .E.V.O. .5.0.0.G.B....................A...........................%8Uq..z.....H..Gd-.;.A..MQ..L.S.a.m.s.u.n.g. .S.S.D. .9.6.0. .E.V.O. .5.0.0.G.B........BO..NO........o.T.O.S.H.I.B.A. .D.T.0.1.A.C.A.3.0.0....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . .3. .U.7.H.9.M.7.S.A........BO..NO........o.T.O.S.H.I.B.A. .D.T.0.1.A.C.A.3.0.0....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . .3. .S.7.Y.8.7.K.S.A........BO..NO........o.S.T.4.0.0.0.V.N.0.0.8.-.2.D.R.1.6.6....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .G.Z.5.Y.0.E.C.6........BO..NO........o.S.T.4.0.0.0.V.N.0.0.8.-.2.D.R.1.6.6....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .D.Z.7.H.2.G.B.K........BO..NO........e.G.e.n.e.r.i.c.-.C.o.m.p.a.c.t. .F.l.a.s.h. .1...0.0....................A.......................8..Gd-.;.A..MQ..L.2.0.0.6.0.4.1.3.0.9.2.1.0.0.0.0.0........BO..NO........j.G.e.n.e.r.i.c.-.S.M./.x.D.-.P.i.c.t.u.r.e. .1...0.0....................A............................8..Gd-.;.A..MQ..L.2.0.0.6.0.4.1.3.0.9.2.1.0.0.0.0.0........BO..NO........j.G.e.n.e.r.i.c.-.S.D./.M.M.C. .1...0.0....................A............................8..Gd-.;.A..MQ..L.2.0.0.6.0.4.1.3.0.9.2.1.0.0.0.0.0........BO..NO........j.G.e.n.e.r.i.c.-.M.S./.M.S.-.P.r.o. .1...0.0....................A............................8..Gd-.;.A..MQ..L.2.0.0.6.0.4.1.3.0.9.2.1.0.0.0.0.0........BO
Boot0003* CD/DVD Drive  BBS(CDROM,,0x0)..GO..NO........I.P.I.O.N.E.E.R. .B.D.-.R.W. . . .B.D.R.-.S.1.2.U....................A..............................Gd-.;.A..MQ..L.A........BO
Boot0004* opensuse-secureboot   HD(2,GPT,bb0c9ac8-83ca-41f4-bdf6-3e106d8a0231,0xe1800,0x32000)/File(\EFI\OPENSUSE\SHIM.EFI)

NAME FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS PARTUUID                             PARTTYPE
sda                                                                                                                             
└─sda1
     linux_ 1.0   any:0    ac849a53-f134-49db-0e79-3217b1676841                            45a93f5e-934f-4a3f-9a30-b4e3d3990126 a19d880f-05fc-4d3b-a006-743f0f84911e
  └─md0
     ext4   1.0            bb44ca42-d890-4a58-83f8-fbf99ba728a5  681.8G    70% /home                                            
sdb                                                                                                                             
└─sdb1
     linux_ 1.0   any:0    ac849a53-f134-49db-0e79-3217b1676841                            18297b3a-0c74-46c9-8836-dd7c1b70e36b a19d880f-05fc-4d3b-a006-743f0f84911e
  └─md0
     ext4   1.0            bb44ca42-d890-4a58-83f8-fbf99ba728a5  681.8G    70% /home                                            
sdc  linux_ 1.0   any:2    d21eb55f-9a04-7271-9722-c9b553076c5c                                                                 
└─md2
     ext4   1.0            322e88d6-ee8a-4bd7-b5b1-26c563fe8bba  618.7G    78% /opt                                             
sdd  linux_ 1.0   any:2    d21eb55f-9a04-7271-9722-c9b553076c5c                                                                 
└─md2
     ext4   1.0            322e88d6-ee8a-4bd7-b5b1-26c563fe8bba  618.7G    78% /opt                                             
sde                                                                                                                             
sdf                                                                                                                             
sdg                                                                                                                             
sdh                                                                                                                             
sr0                                                                                                                             
nvme0n1
                                                                                                                                
├─nvme0n1p1
│    ntfs         Recovery C04A7CED4A7CE198                                                f1c0b712-e0ce-4278-83f6-35d2229f097b de94bba4-06d1-4d40-a16a-bfd50179d6ac
├─nvme0n1p2
│    vfat   FAT16          C38E-30C4                              93.9M     6% /boot/efi   bb0c9ac8-83ca-41f4-bdf6-3e106d8a0231 ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
├─nvme0n1p3
│                                                                                          75e5b0cf-8b86-4b3a-b811-2891584c156d e3c9e316-0b5c-4db8-817d-f92df00215ae
├─nvme0n1p4
│    ntfs                  66928D71928D4711                                                bd1a63ac-7591-406e-9447-704c4c7d8e4b ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
├─nvme0n1p5
│    ntfs                  66326F20326EF489                                                238c5119-ffa7-44b5-ab2e-c85883ca182c de94bba4-06d1-4d40-a16a-bfd50179d6ac
├─nvme0n1p6
│    btrfs                 d89a5721-8bfa-45d4-840c-836d40daeeb2  151.6G    15% /usr/local  b92c8032-5690-4c5f-be32-f1c9dbafd724 0fc63daf-8483-4772-8e79-3d69d8477de4
│                                                                              /tmp                                             
│                                                                              /srv                                             
│                                                                              /boot/grub2/x86_64-efi                                      
│                                                                              /root                                            
│                                                                              /boot/grub2/i386-pc                                      
│                                                                              /.snapshots                                      
│                                                                              /                                                
├─nvme0n1p7
│    swap   1              11b52a47-935d-4cf7-9e6d-e807cdb1d3ee                [SWAP]      33d28098-b8b2-4618-8ae5-7bb8d0ea937f 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
└─nvme0n1p8
     xfs                   e70e52f6-fcfb-487f-aa32-f545a8a35073   22.5G     7% /var        8f8eb047-6ef4-4fa2-aeaf-be1b446b5298 0fc63daf-8483-4772-8e79-3d69d8477de4

Windows loader is on the partition with GUID bb0c9ac8-83ca-41f4-bdf6-3e106d8a0231 which is

with partition type GUID ebd0a0a2-b9e5-4433-87c0-68b6b72699c7. That is the reason it is ignored by os-prober which only looks on partitions marked as EFI System Partition (different partition type GUID).

BIOS probably does not care as long as it can read the filesystem on this partition. But I expect Windows may be confused if it ever has to change boot configuration (recovery, patch installation).

What exactly “no longer” means? When did it stop working? os-prober was not changed for ages (the code is from Windows 7 era). And most certainly there were no changes between Leap 15.5 and 15.6.

I would change partition type to the EFI System Partition (GUID c12a7328-f81f-11d2-ba4b-00a0c93ec93b) but I strongly recommend asking on Windows forums whether Windows needs some extra steps after having done it. For Linux it is transparent.

That much at least I had worked out, it was how to get grub2 to recognise it I had no idea about.

OK, thanks.

I rarely run Windows to be honest, perhaps once per month at most, so haven’t rushed to fix this. However, “no longer” means when I upgraded from Leap 15.5 to Leap 15.6, so something has changed in the install procedure as had no problems with previous versions of Leap (I’ve been running OpenSUSE on this machine since I built it quite a long time ago). What I am not sure of is whether it was the in place upgrade or the reinstall of 15.6 that nuked it, I’m guessing the latter.

Basically, I had so many issues after upgrading from 15.5 to 15.6 (in place, changing the repo versions and running DUP), that I did a clean instal (formatting most partitions, except /home and /opt). I’m guessing it was that which lost the Windows boot option.

Your system supports UEFI Secure Boot: Use BIOS boot menu to start the operating system of your choice. Simply forget grub boot menu and os-prober.

Your system supports UEFI Secure Boot: Future SBAT updates from Microsoft could block linux boot:
https://www.heise.de/en/news/Microsoft-extends-workaround-for-Windows-SBAT-update-9848078.html

https://docs.oracle.com/en/operating-systems/oracle-linux/secure-boot/sboot-ToolsandApplicationsforAdministeringSecureBoot.html

Today:

# mokutil --sb-state
SecureBoot enabled

# mokutil --list-sbat-revocations
sbat,1,2024010900
shim,4
grub,3
grub.debian,4

Be sure all OS’s are using the same boot method.