Bug ID 1180383
Summary Cannot boot on degraded raid with dual EFI partitions - dracut exits on emergency shell
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.2
Hardware Other
OS openSUSE Leap 15.2
Status NEW
Severity Major
Priority P5 - None
Component Basesystem
Assignee screening-team-bugs@suse.de
Reporter jjletho67-esus@yahoo.it
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 844709 [details]
/etc/fstab file

with the aim to make a fully redundant system I created a partition layout in
which everything is on raid1 except the EFI partition. (see partition layout
and fstab attached)

( EFI on raid was working fine on LEAP 42.3 but with LEAP 15.2 I'm having
trouble, see: 
https://bugzilla.suse.com/show_bug.cgi?id=1179981 and
https://forums.opensuse.org/showthread.php/547946-grub2-install-error-with-efi-on-raid1-(error-at-boot-quot-Verification-requested-but-nobody-cares-quot-)
)

For EFI partition redundancy I created two different EFI partitions, one  for
every disks, and i mounted on /boot/efi (disk1) and /boot/efi2 (disk2). I
manually copied all the content from efi to efi2 every time it is needed and I
launch the efibootmgr command to crate the correct efivars entry. I set the
nofail options for efi and efi2 filesystem in fstab, since installation time.

By this way the sistem is able to boot from both the efi partitions.

When the disk2 is in fail condition (I remove the disk to simulate the failure)
the system is able to boot fine.
When the disk1 is in fail condition the system cannot complete the boot and
emergency shell appears on the screen

I'm attaching the rdsosreport.txt generated from dracut emergency shell when
the system fails to boot. 

Please note that when i remove disk1 to simulate the failure condition, the
system assign /dev/vda to disk2 (which is normally /dev/vdb)

My speculation is the system absolutely want the /boot/efi partition but it
cannot find it. This is an illogical behavior 
because once the system has started booting and the kernel has control, efi
partition is not needed anymore. For this reason I set the nofail option in
fstab, but it is not honored at some point. 

From my point of view this is exactly the same bug I found on leap 42.3:
https://bugzilla.suse.com/show_bug.cgi?id=1059169

STEP TO REPRODUCE:
Install LEAP 15.2 with the same partitions layout described in my attachment
Perform a "zypper patch" and reboot it
Then remove disk1 and reboot again

ACTUAL RESULTS: the system does not boot, Dracut drop me in emergency shell.
Last line on the console log is a warning about the /boot/efi missing 

EXPECTED RESULTS: the system continues to boot properly, after the timeout for
the missing disk and partitions is expired


You are receiving this mail because: