X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F85-efi-classes;h=711b53479e623da3355248ee4580a898a569be6c;hb=79cd04733bf570db299ef09195c498a63f3f3fd5;hp=ee2f04b97187789f1b6dc1006f4ef22ac5d80234;hpb=7ade5e2c6113530c5f99cfc95880897fcb479f39;p=automated-distro-installer diff --git a/fai/config/class/85-efi-classes b/fai/config/class/85-efi-classes index ee2f04b..711b534 100755 --- a/fai/config/class/85-efi-classes +++ b/fai/config/class/85-efi-classes @@ -2,16 +2,13 @@ # define classes for disk_config in an EFI enironment -if [ ! -d /sys/firmware/efi ]; then +if [ ! -d /sys/firmware/efi ] || ifclass GRUB_PC; then exit 0 fi -if ifclass FAIBASE; then - echo FAIBASE_EFI -elif ifclass FAISERVER; then - echo FAISERVER_EFI -elif ifclass LVM; then - echo LVM_EFI -elif ifclass XENIAL; then - echo XENIAL_EFI -fi +for c in LVM FAISERVER FAIBASE; do + if ifclass $c; then + echo ${c}_EFI + break + fi +done