Bug 1219154 - kexec-bootloader / grub2-editenv does not find disk with /boot on RAID
Summary: kexec-bootloader / grub2-editenv does not find disk with /boot on RAID
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Bootloader (show other bugs)
Version: Leap 15.5
Hardware: Other openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Bootloader Maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-24 18:11 UTC by Georg Pfuetzenreuter
Modified: 2024-02-07 16:18 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Pfuetzenreuter 2024-01-24 18:11:49 UTC
Hi,

on a physical EFI system with disabled secure boot, the following is observed:

```
falkor21 # systemctl start kexec-load
falkor21 # journalctl -u kexec-load --no-pager
Jan 24 17:58:50 falkor21.infra.opensuse.org systemd[1]: Starting load default kernel into the current kernel...
Jan 24 17:58:51 falkor21.infra.opensuse.org kexec-bootloader[38082]: /usr/bin/grub2-editenv: error: ../grub-core/kern/disk.c:237:disk `mduuid/6de056e433e6bbd1e48dc0e0188adfc1,2' not found.
Jan 24 17:58:52 falkor21.infra.opensuse.org kexec-bootloader[38089]: /usr/bin/grub2-editenv: error: ../grub-core/kern/disk.c:237:disk `mduuid/6de056e433e6bbd1e48dc0e0188adfc1,2' not found.
Jan 24 17:58:52 falkor21.infra.opensuse.org systemd[1]: kexec-load.service: Deactivated successfully.
Jan 24 17:58:52 falkor21.infra.opensuse.org systemd[1]: Finished load default kernel into the current kernel.
```

The /boot and /boot/efi partitions are located under the RAID 1 pair:

```
FSTYPE            NAME                                        PATH                                                MOUNTPOINT
                  sda                                         /dev/sda
linux_raid_member └─sda1                                      /dev/sda1
                    └─md127                                   /dev/md127
vfat                  ├─md127p1                               /dev/md127p1                                        /boot/efi
btrfs                 ├─md127p2                               /dev/md127p2                                        /boot
swap                  ├─md127p3                               /dev/md127p3                                        [SWAP]
btrfs                 ├─md127p4                               /dev/md127p4                                        /var
xfs                   └─md127p5                               /dev/md127p5                                        /data0

                  sdb                                         /dev/sdb
linux_raid_member └─sdb1                                      /dev/sdb1
                    └─md127                                   /dev/md127
vfat                  ├─md127p1                               /dev/md127p1                                        /boot/efi
btrfs                 ├─md127p2                               /dev/md127p2                                        /boot
swap                  ├─md127p3                               /dev/md127p3                                        [SWAP]
btrfs                 ├─md127p4                               /dev/md127p4                                        /var
xfs                   └─md127p5                               /dev/md127p5                                        /data0
```

Software:

```
falkor21 # zypper se -is kexec
i+ | kexec-tools | package | 2.0.20-150500.18.3 | x86_64 | repo-oss
falkor21 # grep PRETTY /etc/os-release
PRETTY_NAME="openSUSE Leap 15.5"
```

As a second, slightly sidetracked issue, I should also report that the `kexec-bootloader` script seems to exit with 0 albeit this error being returned, making the `kexec-load` service report a successful execution (as shown above), which turns out to be false only once the output is inspected.