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
4
debian/mdadm.initramfs-hook
vendored
4
debian/mdadm.initramfs-hook
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue