summaryrefslogtreecommitdiff
path: root/xi/s6/sv/mount-efivars/up
blob: 3c2fe6ece13faa05a6a872ff7169cd2cabcc6d45 (plain)
1
2
3
4
5
6
7
#!/bin/execlineb -P
if { s6-echo "[   Virtual-FS   ] 6/6 : Mounting EFI-vars-fs" }
foreground {
   if { test -d /sys/firmware/efi }
       if -n { mountpoint -q /sys/firmware/efi/efivars }
          mount -n -t efivarfs -o ro efivarfs /sys/firmware/efi/efivars
}