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:
parent
09365c39d4
commit
5e1acc817c
1 changed files with 5 additions and 1 deletions
6
debian/mdadm.initramfs-hook
vendored
6
debian/mdadm.initramfs-hook
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue