Package: mdadm
Version: 4.4-12
Severity: normal
Tags: patch

Hello maintainers of mdadm,

While reproducing the issue in #1110729, I found out that the generation of live images result in different images, depending on whether they are built on a host booted via BIOS or UEFI.

Attached you'll find a patch that always includes the efivarfs modules in the initrd.img

With kind regards,
Roland Clobus
diff --git a/debian/mdadm.initramfs-hook b/debian/mdadm.initramfs-hook
index b69159d..be4f826 100644
--- a/debian/mdadm.initramfs-hook
+++ b/debian/mdadm.initramfs-hook
@@ -66,10 +66,9 @@ for module in linear multipath raid0 raid1 raid456 raid5 raid6 raid10; do
 done
 
 # load efivars for Intel RST IMSM, see Bug#962844
+force_load efivarfs || true
 if [ -e /sys/firmware/efi ]
 then
-	force_load efivarfs || true
-
 	if ! ls /sys/firmware/efi/efivars/* > /dev/null 2>&1
 	then
 		mount -t efivarfs -o rw,nosuid,nodev,noexec,relatime efivarfs /sys/firmware/efi/efivars || true

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to