Adding a initramfs-tools script to mount the efivarfs during the initramfs boot phase (Closes: #1003352, #1103762; LP: #1993541).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6e852095e1
commit
9dc37e568f
1 changed files with 19 additions and 0 deletions
19
debian/local/initramfs-tools/init-top/00_mount_efivarfs
vendored
Executable file
19
debian/local/initramfs-tools/init-top/00_mount_efivarfs
vendored
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PREREQ=""
|
||||||
|
prereqs()
|
||||||
|
{
|
||||||
|
echo "$PREREQ"
|
||||||
|
}
|
||||||
|
case $1 in
|
||||||
|
# get pre-requisites
|
||||||
|
prereqs)
|
||||||
|
prereqs
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# shellcheck disable=SC2013
|
||||||
|
if [ -d /sys/firmware/efi/efivars ]; then
|
||||||
|
mount -t efivarfs -o rw,nosuid,nodev,noexec,relatime efivarfs /sys/firmware/efi/efivars
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue