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,8 +69,12 @@ done
if [ -e /sys/firmware/efi ] if [ -e /sys/firmware/efi ]
then then
force_load efivarfs || true 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 mount -t efivarfs -o rw,nosuid,nodev,noexec,relatime efivarfs /sys/firmware/efi/efivars || true
fi fi
fi
# copy the mdadm configuration # copy the mdadm configuration
CONFIG=/etc/mdadm/mdadm.conf CONFIG=/etc/mdadm/mdadm.conf