[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH] builder: templates: debian: use single-partition layout



The previously selected 'atomic' recipe resulted in 2GB swap in a 6GB
volume. Also, we don't really need the boot partition, so just create a
partition using the whole disk space.
---
 builder/templates/debian.preseed | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/builder/templates/debian.preseed b/builder/templates/debian.preseed
index b56eb67ff..3cffb3b9b 100644
--- a/builder/templates/debian.preseed
+++ b/builder/templates/debian.preseed
@@ -174,12 +174,23 @@ d-i partman-md/device_remove_md boolean true
 # And the same goes for the confirmation to write the lvm partitions.
 d-i partman-lvm/confirm boolean true
 d-i partman-lvm/confirm_nooverwrite boolean true
+d-i partman-basicfilesystems/no_swap boolean false
+
+d-i partman-auto/expert_recipe string myroot :: 500 10000 1000000 ext4 \
+	$primary{ } \
+	$bootable{ } \
+	method{ format } \
+	format{ } \
+	use_filesystem{ } \
+	filesystem{ ext4 } \
+	mountpoint{ / } .
 
 # You can choose one of the three predefined partitioning recipes:
 # - atomic: all files in one partition
 # - home:   separate /home partition
 # - multi:  separate /home, /var, and /tmp partitions
-d-i partman-auto/choose_recipe select atomic
+
+d-i partman-auto/choose_recipe select myroot
 
 # Or provide a recipe of your own...
 # If you have a way to get a recipe file into the d-i environment, you can
-- 
2.14.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]