aboutsummaryrefslogtreecommitdiff
path: root/init.d/sysfs.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r--init.d/sysfs.in16
1 files changed, 6 insertions, 10 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 8030ea84..e493f584 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -98,16 +98,12 @@ mount_misc()
fi
# set up kernel support for efivarfs
- # The presence of /sys/firmware/efi indicates that the system was
- # booted in efi mode.
- if [ -d /sys/firmware/efi ]; then
- if [ -d /sys/firmware/efi/efivars ] &&
- ! mountinfo -q /sys/firmware/efi/efivars; then
- ebegin "Mounting efivarfs filesystem"
- mount -n -t efivarfs -o ${sysfs_opts} \
- efivarfs /sys/firmware/efi/efivars
- eend $?
- fi
+ if [ -d /sys/firmware/efi/efivars ] &&
+ ! mountinfo -q /sys/firmware/efi/efivars; then
+ ebegin "Mounting efivarfs filesystem"
+ mount -n -t efivarfs -o ${sysfs_opts} \
+ efivarfs /sys/firmware/efi/efivars 2> /dev/null
+ eend 0
fi
}