summaryrefslogtreecommitdiffstats
path: root/source/a/elilo/eliloconfig
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-03-21 21:18:59 +0000
committer Eric Hameleers <alien@slackware.com>2023-03-21 23:41:13 +0100
commit6b6caf66ba2adca3cda2fb7b9a739fbf08d5aeba (patch)
tree4e59b59a42bb328c62948c9a983a18d511c61f4a /source/a/elilo/eliloconfig
parent1b82981c9672f79d8134d7fe221ac7e171e1c06b (diff)
downloadcurrent-6b6caf66ba2adca3cda2fb7b9a739fbf08d5aeba.tar.gz
current-6b6caf66ba2adca3cda2fb7b9a739fbf08d5aeba.tar.xz
Tue Mar 21 21:18:59 UTC 202320230321211859
a/elilo-3.16-x86_64-15.txz: Rebuilt. eliloconfig: drop support for old EFI vars interface. Mount efivarfs on /sys/firmware/efi/efivars if we find that the directory is empty. d/indent-2.2.13-x86_64-1.txz: Upgraded. d/scons-4.5.2-x86_64-1.txz: Upgraded. x/libva-2.18.0-x86_64-1.txz: Upgraded. xap/mozilla-firefox-111.0.1-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://www.mozilla.org/en-US/firefox/111.0.1/releasenotes/ xfce/xfce4-clipman-plugin-1.6.3-x86_64-1.txz: Upgraded. extra/tigervnc/tigervnc-1.13.1-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. Make sure efivarfs is mounted on UEFI systems. usb-and-pxe-installers/usbboot.img: Rebuilt. Make sure efivarfs is mounted on UEFI systems.
Diffstat (limited to 'source/a/elilo/eliloconfig')
-rw-r--r--source/a/elilo/eliloconfig18
1 files changed, 4 insertions, 14 deletions
diff --git a/source/a/elilo/eliloconfig b/source/a/elilo/eliloconfig
index ae622634f..bcded54d8 100644
--- a/source/a/elilo/eliloconfig
+++ b/source/a/elilo/eliloconfig
@@ -176,20 +176,10 @@ if [ "$REPLY" = "skip" ]; then
exit
fi
-# Make sure an interface to read/write EFI variables is present:
-if [ ! -d /sys/firmware/efi/efivars ]; then
- modprobe efivarfs 1> /dev/null 2> /dev/null
- sleep 1 # Probably not needed, but playing it safe
- # Take another look:
- if [ ! -d /sys/firmware/efi/efivars ]; then
- # Maybe we have an old kernel, so try the previous /sys/firmware/efi/vars interface instead:
- modprobe efivars 1> /dev/null 2> /dev/null
- sleep 1 # Probably not needed, but playing it safe
- fi
-fi
-# At this point, we fail silently if we don't have either of these directories:
-if [ ! -d /sys/firmware/efi/efivars -a ! -d /sys/firmware/efi/vars ]; then
- exit
+# Make sure efivarfs is active since we'll need it to
+# change UEFI boot menu entries:
+if [ "$(/bin/ls /sys/firmware/efi/efivars 2> /dev/null | wc -l)" = "0" ]; then
+ mount -t efivarfs none /sys/firmware/efi/efivars
fi
efibootmgr -v | rev | cut -f 2- | rev | grep Boot0 | grep Slackware | while read line ; do