From b505f4d4bb62370a2140a20cf3d4f57ab5f011b6 Mon Sep 17 00:00:00 2001
From: Lars Frost <larsf@fsmpi.rwth-aachen.de>
Date: Fri, 7 Oct 2022 10:02:57 +0200
Subject: [PATCH] Allow smaller efi partition

---
 assemble_image.sh        |  1 +
 calamares-partition.conf | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 calamares-partition.conf

diff --git a/assemble_image.sh b/assemble_image.sh
index 7adb060..3bb1d48 100755
--- a/assemble_image.sh
+++ b/assemble_image.sh
@@ -132,6 +132,7 @@ configure_package_chooser mathe "m" "M" "Mathematics" "Mathematik"
 configure_package_chooser physik "p" "P" "Physics" "Physik"
 configure_package_chooser informatik "i" "I" "Computer Science" "Informatik"
 cp calamares-packages.conf "$ETC_CAL/modules/packages.conf"
+cp calamares-partition.conf "$ETC_CAL/modules/partition.conf"
 chown "$REGULAR_USER:$REGULAR_USER" -R "$ISO_PROFILES_REPO"
 
 create_offline_repo
diff --git a/calamares-partition.conf b/calamares-partition.conf
new file mode 100644
index 0000000..9370005
--- /dev/null
+++ b/calamares-partition.conf
@@ -0,0 +1,15 @@
+---
+efiSystemPartition:     "/boot/efi"
+efiSystemPartitionSize:     50M
+userSwapChoices:
+    - none      # Create no swap, use no swap
+    - small     # Up to 4GB
+    - suspend   # At least main memory size
+    - file      # To swap file instead of partition
+alwaysShowPartitionLabels: true
+# There are four options: erase, replace, alongside, manual),
+# the default is "none".
+initialPartitioningChoice: alongside
+initialSwapChoice: none
+defaultFileSystemType:  "ext4"
+availableFileSystemTypes:  ["ext4","btrfs","f2fs","xfs"]
-- 
GitLab