diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-25 18:03:06 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-25 18:03:33 +0000 |
commit | 3078eaf78a923b96b7fb6a88d5490c01fb7c0fb5 (patch) | |
tree | c4c82e2abc9126b4d2083a6c2a1d3b1aaf7b79ac | |
parent | Updating upstream contact in copyright. (diff) | |
download | mdadm-3078eaf78a923b96b7fb6a88d5490c01fb7c0fb5.tar.xz mdadm-3078eaf78a923b96b7fb6a88d5490c01fb7c0fb5.zip |
Silencing mounting efivars in initramfs-hook by only mounting if not done already.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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 |