init.d/sysfs.in: efivarfs tweaks
Since we check for /sys/firmware/efi/efivars, we do not need to check for /sys/firmware/efi Since Failing to mount efivarfs is not critical, we silence the error message from mount.
This commit is contained in:
parent
cfdf56475e
commit
5f5b1f7cbe
@ -98,16 +98,12 @@ mount_misc()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set up kernel support for efivarfs
|
# set up kernel support for efivarfs
|
||||||
# The presence of /sys/firmware/efi indicates that the system was
|
if [ -d /sys/firmware/efi/efivars ] &&
|
||||||
# booted in efi mode.
|
! mountinfo -q /sys/firmware/efi/efivars; then
|
||||||
if [ -d /sys/firmware/efi ]; then
|
ebegin "Mounting efivarfs filesystem"
|
||||||
if [ -d /sys/firmware/efi/efivars ] &&
|
mount -n -t efivarfs -o ${sysfs_opts} \
|
||||||
! mountinfo -q /sys/firmware/efi/efivars; then
|
efivarfs /sys/firmware/efi/efivars 2> /dev/null
|
||||||
ebegin "Mounting efivarfs filesystem"
|
eend 0
|
||||||
mount -n -t efivarfs -o ${sysfs_opts} \
|
|
||||||
efivarfs /sys/firmware/efi/efivars
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user