1
0
Fork 0

Silencing mounting efivars in initramfs-hook by only mounting if not done already.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-14 06:02:46 +01:00
parent 09365c39d4
commit 5e1acc817c
Signed by: daniel
GPG key ID: FBB4F0E80A80222F

View file

@ -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