From bc97e15c3cd55f10cc11016578673744e3220ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Wed, 14 Jul 2021 21:26:19 +0200 Subject: [PATCH] disk_layout: use btrfs for the OEM partition The compression feature of btrfs allows us to store more in the size-limited /usr and OEM partitions. The size should of course still be monitored to not bloat the image but more headroom helps to try things out quickly without hitting the hard limit which fails the build. Use btrfs for the OEM partition but with zlib compression because the outdated GRUB version doesn't support zstd yet. New subvolumes currently can't be used for the OEM partition as default subvolumes because GRUB tries to read the grub.cfg from the top subvolume (at least with our old version). (We could however use subvolumes for the /usr partition when switching to btrfs if that makes any sense.) --- build_library/disk_layout.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_library/disk_layout.json b/build_library/disk_layout.json index 1022069f79..5db159b6f8 100644 --- a/build_library/disk_layout.json +++ b/build_library/disk_layout.json @@ -51,7 +51,8 @@ "fs_label":"OEM", "type":"data", "blocks":"262144", - "fs_type":"ext4", + "fs_type":"btrfs", + "fs_compression":"zlib", "mount":"/usr/share/oem" }, "7":{