diff options
-rw-r--r-- | debian/mdadm.initramfs-hook | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/mdadm.initramfs-hook b/debian/mdadm.initramfs-hook index 1076f3c..b69159d 100644 --- a/debian/mdadm.initramfs-hook +++ b/debian/mdadm.initramfs-hook @@ -69,7 +69,11 @@ done if [ -e /sys/firmware/efi ] then force_load efivarfs || true - mount -t efivarfs -o rw,nosuid,nodev,noexec,relatime efivarfs /sys/firmware/efi/efivars || 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 + fi fi # copy the mdadm configuration |