Grub can't find Tumbleweed, separate /boot etx2 and LVM encrypted partition

Hi,

after a recent Leap 15 beta update grub doesn’t find TW anymore.
What I have tried so far:

  1. Run os-prober. It finds the /boot ext2 partition, but then fails to recognize TW:
                                                                                        
Feb 11 19:13:35 linux-zev5 os-prober[2438]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/nvme0n1p4                                                                                                                                                                                                                                                           
Feb 11 19:13:35 linux-zev5 50mounted-tests[2449]: debug: mounted using GRUB ntfs filesystem driver                                                                                                                                                                                                                                                                        
Feb 11 19:13:35 linux-zev5 50mounted-tests[2450]: debug: running subtest /usr/lib/os-probes/mounted/05efi                                                                                                                                                                                                                                                                 
Feb 11 19:13:35 linux-zev5 05efi[2452]: debug: /dev/nvme0n1p4 is ntfs partition: exiting                                                                                                                                                                                                                                                                                  
Feb 11 19:13:35 linux-zev5 50mounted-tests[2453]: debug: running subtest /usr/lib/os-probes/mounted/10freedos                                                                                                                                                                                                                                                             
Feb 11 19:13:35 linux-zev5 10freedos[2455]: debug: /dev/nvme0n1p4 is not a FAT partition: exiting                                                                                                                                                                                                                                                                         
Feb 11 19:13:35 linux-zev5 50mounted-tests[2456]: debug: running subtest /usr/lib/os-probes/mounted/10qnx                                                                                                                                                                                                                                                                 
Feb 11 19:13:35 linux-zev5 10qnx[2458]: debug: /dev/nvme0n1p4 is not a QNX4 partition: exiting                                                                                                                                                                                                                                                                            
Feb 11 19:13:35 linux-zev5 50mounted-tests[2459]: debug: running subtest /usr/lib/os-probes/mounted/20macosx                                                                                                                                                                                                                                                              
Feb 11 19:13:35 linux-zev5 macosx-prober[2461]: debug: /dev/nvme0n1p4 is not an HFS+ partition: exiting                                                                                                                                                                                                                                                                   
Feb 11 19:13:35 linux-zev5 50mounted-tests[2462]: debug: running subtest /usr/lib/os-probes/mounted/20microsoft                                                                                                                                                                                                                                                           
Feb 11 19:13:35 linux-zev5 20microsoft[2464]: debug: Skipping legacy bootloaders on UEFI system                                                                                                                                                                                                                                                                           
Feb 11 19:13:35 linux-zev5 50mounted-tests[2465]: debug: running subtest /usr/lib/os-probes/mounted/30utility                                                                                                                                                                                                                                                             
Feb 11 19:13:35 linux-zev5 30utility[2467]: debug: /dev/nvme0n1p4 is not a FAT partition: exiting                                                                                                                                                                                                                                                                         
Feb 11 19:13:35 linux-zev5 50mounted-tests[2468]: debug: running subtest /usr/lib/os-probes/mounted/40lsb                                                                                                                                                                                                                                                                 
Feb 11 19:13:35 linux-zev5 50mounted-tests[2470]: debug: running subtest /usr/lib/os-probes/mounted/70hurd
Feb 11 19:13:35 linux-zev5 50mounted-tests[2472]: debug: running subtest /usr/lib/os-probes/mounted/80minix
Feb 11 19:13:35 linux-zev5 50mounted-tests[2474]: debug: running subtest /usr/lib/os-probes/mounted/83haiku
Feb 11 19:13:35 linux-zev5 83haiku[2476]: debug: /dev/nvme0n1p4 is not a BeFS partition: exiting
Feb 11 19:13:35 linux-zev5 50mounted-tests[2477]: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
Feb 11 19:13:35 linux-zev5 50mounted-tests[2480]: debug: running subtest /usr/lib/os-probes/mounted/90solaris
Feb 11 19:13:35 linux-zev5 50mounted-tests[2482]: debug: running subtest /usr/lib/os-probes/mounted/efi
Feb 11 19:13:35 linux-zev5 os-prober[2504]: debug: /dev/nvme0n1p6: is active swap
Feb 11 19:13:35 linux-zev5 os-prober[2523]: debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 05efi[2525]: debug: /dev/nvme0n1p7 is ext4 partition: exiting
Feb 11 19:13:35 linux-zev5 os-prober[2526]: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 10freedos[2528]: debug: /dev/nvme0n1p7 is not a FAT partition: exiting
Feb 11 19:13:35 linux-zev5 os-prober[2529]: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 10qnx[2531]: debug: /dev/nvme0n1p7 is not a QNX4 partition: exiting
Feb 11 19:13:35 linux-zev5 os-prober[2532]: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 macosx-prober[2534]: debug: /dev/nvme0n1p7 is not an HFS+ partition: exiting
Feb 11 19:13:35 linux-zev5 os-prober[2535]: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 20microsoft[2537]: debug: Skipping legacy bootloaders on UEFI system
Feb 11 19:13:35 linux-zev5 os-prober[2538]: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 30utility[2540]: debug: /dev/nvme0n1p7 is not a FAT partition: exiting
Feb 11 19:13:35 linux-zev5 os-prober[2541]: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 os-prober[2543]: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 os-prober[2545]: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 os-prober[2547]: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 83haiku[2549]: debug: /dev/nvme0n1p7 is not a BeFS partition: exiting
Feb 11 19:13:35 linux-zev5 os-prober[2550]: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 os-prober[2553]: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/nvme0n1p7
Feb 11 19:13:35 linux-zev5 os-prober[2562]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/nvme0n1p8
Feb 11 19:13:35 linux-zev5 50mounted-tests[2573]: debug: mounted using GRUB ext2 filesystem driver
Feb 11 19:13:36 linux-zev5 50mounted-tests[2574]: debug: running subtest /usr/lib/os-probes/mounted/05efi
Feb 11 19:13:36 linux-zev5 05efi[2576]: debug: /dev/nvme0n1p8 is ext2 partition: exiting
Feb 11 19:13:36 linux-zev5 50mounted-tests[2577]: debug: running subtest /usr/lib/os-probes/mounted/10freedos
Feb 11 19:13:36 linux-zev5 10freedos[2579]: debug: /dev/nvme0n1p8 is not a FAT partition: exiting
Feb 11 19:13:36 linux-zev5 50mounted-tests[2580]: debug: running subtest /usr/lib/os-probes/mounted/10qnx
Feb 11 19:13:36 linux-zev5 10qnx[2582]: debug: /dev/nvme0n1p8 is not a QNX4 partition: exiting
Feb 11 19:13:36 linux-zev5 50mounted-tests[2583]: debug: running subtest /usr/lib/os-probes/mounted/20macosx
Feb 11 19:13:36 linux-zev5 macosx-prober[2585]: debug: /dev/nvme0n1p8 is not an HFS+ partition: exiting
Feb 11 19:13:36 linux-zev5 50mounted-tests[2586]: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
Feb 11 19:13:36 linux-zev5 20microsoft[2588]: debug: Skipping legacy bootloaders on UEFI system
Feb 11 19:13:36 linux-zev5 50mounted-tests[2589]: debug: running subtest /usr/lib/os-probes/mounted/30utility
Feb 11 19:13:36 linux-zev5 30utility[2591]: debug: /dev/nvme0n1p8 is not a FAT partition: exiting
Feb 11 19:13:36 linux-zev5 50mounted-tests[2592]: debug: running subtest /usr/lib/os-probes/mounted/40lsb
Feb 11 19:13:36 linux-zev5 50mounted-tests[2594]: debug: running subtest /usr/lib/os-probes/mounted/70hurd
Feb 11 19:13:36 linux-zev5 50mounted-tests[2596]: debug: running subtest /usr/lib/os-probes/mounted/80minix
Feb 11 19:13:36 linux-zev5 50mounted-tests[2598]: debug: running subtest /usr/lib/os-probes/mounted/83haiku
Feb 11 19:13:36 linux-zev5 83haiku[2600]: debug: /dev/nvme0n1p8 is not a BeFS partition: exiting
Feb 11 19:13:36 linux-zev5 50mounted-tests[2601]: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
Feb 11 19:13:36 linux-zev5 50mounted-tests[2604]: debug: running subtest /usr/lib/os-probes/mounted/90solaris
Feb 11 19:13:36 linux-zev5 50mounted-tests[2606]: debug: running subtest /usr/lib/os-probes/mounted/efi
Feb 11 19:13:36 linux-zev5 os-prober[2617]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/nvme0n1p9
Feb 11 19:13:36 linux-zev5 50mounted-tests[2623]: debug: /dev/nvme0n1p9 is a LUKS partition; skipping
Feb 11 19:13:36 linux-zev5 os-prober[2624]: debug: os detected by /usr/lib/os-probes/50mounted-tests
Feb 11 19:13:36 linux-zev5 os-prober[2632]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda1
Feb 11 19:13:36 linux-zev5 50mounted-tests[2638]: debug: /dev/sda1 is a LUKS partition; skipping
Feb 11 19:13:36 linux-zev5 os-prober[2639]: debug: os detected by /usr/lib/os-probes/50mounted-tests
  1. I edited /etc/grub.d/40_custom and updated grub grub2-mkconfig -o /boot/grub2/grub.cfg:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "OpenSUSE Tumbleweed" {
    insmod ext2
    search --no-floppy --fs-uuid --set=root d35cbdcf-09aa-42a1-9922-e30e4a1f2421
    linux /vmlinuz root=UUID=d35cbdcf-09aa-42a1-9922-e30e4a1f2421 ro quiet splash
    initrd /initrd.img
}


I checked the UUID with blkid

So far no luck, the menu entry appears, but I still can’t boot.

Help is much appreciated :slight_smile:
My guess it is has something to do with the kernel. It’s unable to find /initrd.img, what do I need to put there?
/EDIT a little side note, oh boy, “simply type…” in the 40_custom file, very funny :wink: It’s like academics, “it is obvious that…”

Thanks.
David

What exactly does it mean? What happens when you try to boot? How far you proceed, what error message you see if any?

I found a solution.

I can’t tell anymore why it failed, but I made os-prober work by **mounting the encrypted LVM before running.

**Not quite sure why it needs to be mounted though. I thought all relevant data to boot is on /boot which is not encrypted.