X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F85-efi-classes;h=d61db7e88b29077dc59f2ad5598ae57813c493c4;hp=ee2f04b97187789f1b6dc1006f4ef22ac5d80234;hb=490334746631a6c956eee47947f3ab8f8a451666;hpb=7ade5e2c6113530c5f99cfc95880897fcb479f39 diff --git a/fai/config/class/85-efi-classes b/fai/config/class/85-efi-classes index ee2f04b..d61db7e 100755 --- a/fai/config/class/85-efi-classes +++ b/fai/config/class/85-efi-classes @@ -6,12 +6,9 @@ if [ ! -d /sys/firmware/efi ]; 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