update to 31b795ca71189b326b80666076398f31aea4f2be
[automated-distro-installer] / fai / config / class / 85-efi-classes
diff --git a/fai/config/class/85-efi-classes b/fai/config/class/85-efi-classes
new file mode 100755 (executable)
index 0000000..ee2f04b
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/bash
+
+# define classes for disk_config in an EFI enironment
+
+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