File: 85-efi-classes

package info (click to toggle)
fai 6.5.3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,080 kB
  • sloc: sh: 6,721; perl: 5,625; makefile: 138
file content (14 lines) | stat: -rwxr-xr-x 238 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

# define classes for disk_config in an EFI enironment

if [ ! -d /sys/firmware/efi ] || ifclass GRUB_PC; then
    exit 0
fi

for c in CLOUD LVM FAISERVER FAIBASE; do
    if ifclass $c; then
	echo ${c}_EFI
	break
    fi
done