summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-25 14:36:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-25 17:54:02 +0000
commite6a11c26f85927175fd71f2d69d3a19345ca3480 (patch)
treeb486994ce64236b1afc3a62fa512a3cb7af9c384
parentAlso installing apport hook on debian. (diff)
downloadmdadm-e6a11c26f85927175fd71f2d69d3a19345ca3480.tar.xz
mdadm-e6a11c26f85927175fd71f2d69d3a19345ca3480.zip
Only modprobing efivars on efi systems (Closes: #996622).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/mdadm.initramfs-hook5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/mdadm.initramfs-hook b/debian/mdadm.initramfs-hook
index c89d034..bbd84b2 100644
--- a/debian/mdadm.initramfs-hook
+++ b/debian/mdadm.initramfs-hook
@@ -66,7 +66,10 @@ 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
+fi
# copy the mdadm configuration
CONFIG=/etc/mdadm/mdadm.conf