From 86f64a630440236b4eb1b37d18c359606ba1524b Mon Sep 17 00:00:00 2001 From: Job79 Date: Tue, 17 Nov 2026 19:15:34 +0100 Subject: [PATCH] perf: xfs for /var, lz4hc for the root erofs xfs replaces ext4 on /var (no fsck pass, so fstab passno 0), and the root erofs uses lz4hc, which decompresses faster than zstd. Co-Authored-By: Claude Opus 5.5 --- mkosi.conf | 2 +- mkosi.extra/etc/fstab | 2 +- mkosi.repart/10-root.conf | 2 +- mkosi.repart/30-var.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mkosi.conf b/mkosi.conf index d8752ec..540450a 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -95,7 +95,7 @@ KernelInitrdModules= nvme dm-verity erofs - ext4 + xfs # All modules but the hardware drivers, then the drivers a VM needs (disks, # network, screen) and those of rootless podman's networks (pasta). The last # matching line wins. Keyboard, USB and a basic screen are built into the diff --git a/mkosi.extra/etc/fstab b/mkosi.extra/etc/fstab index e7d9511..a729a88 100644 --- a/mkosi.extra/etc/fstab +++ b/mkosi.extra/etc/fstab @@ -2,4 +2,4 @@ # # /var is the only partition on disk that is written (mkosi.repart/30-var.conf). # x-systemd.growfs grows its filesystem to fill the partition at boot. -PARTLABEL=var /var ext4 x-systemd.growfs 0 2 +PARTLABEL=var /var xfs x-systemd.growfs 0 0 diff --git a/mkosi.repart/10-root.conf b/mkosi.repart/10-root.conf index b320580..4cb3838 100644 --- a/mkosi.repart/10-root.conf +++ b/mkosi.repart/10-root.conf @@ -7,7 +7,7 @@ Type=root Label=%M_%A Format=erofs -Compression=zstd +Compression=lz4hc CopyFiles=/ ExcludeFilesTarget=/var/ Verity=data diff --git a/mkosi.repart/30-var.conf b/mkosi.repart/30-var.conf index 1a838af..87c1183 100644 --- a/mkosi.repart/30-var.conf +++ b/mkosi.repart/30-var.conf @@ -7,7 +7,7 @@ [Partition] Type=var Label=var -Format=ext4 +Format=xfs CopyFiles=/var:/ Minimize=guess SplitName=-