# 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 CLOUD LVM FAISERVER FAIBASE; do
+ if ifclass $c; then
+ echo ${c}_EFI
+ break
+ fi
+done