perf: ext4 for /var, drop systemd-boot-random-seed
xfs is a module in Fedora's kernel and takes ~0.5s to load, which held up mounting /var. ext4 is built in. systemd-boot-random-seed waited ~1s for the ESP to mount. Also remove /afs and /buildroot from the image and give the test VM 4 CPUs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
3 files changed
+14
-4
No files matched your search
+12
-2
@@ -100,7 +100,7 @@ KernelInitrdModules=
|
|||||||
nvme
|
nvme
|
||||||
dm-verity
|
dm-verity
|
||||||
erofs
|
erofs
|
||||||
xfs
|
ext4
|
||||||
# All modules but the hardware drivers, then the drivers a VM needs (disks,
|
# 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
|
# 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
|
# matching line wins. Keyboard, USB and a basic screen are built into the
|
||||||
@@ -126,6 +126,13 @@ KernelModules=
|
|||||||
# nsresourced
|
# nsresourced
|
||||||
# - sshd-keygen sshd uses one host key, kept on /var
|
# - sshd-keygen sshd uses one host key, kept on /var
|
||||||
# (mkosi.extra/etc/ssh/sshd_config.d)
|
# (mkosi.extra/etc/ssh/sshd_config.d)
|
||||||
|
# - /afs mount point for the AFS network filesystem
|
||||||
|
# - /buildroot dnf's lock file, left by mkosi: it passes dnf5
|
||||||
|
# persistdir=/buildroot/var/lib/dnf and dnf5 puts
|
||||||
|
# the install root in front of it again
|
||||||
|
# - systemd-boot-random-seed refreshes the boot loader's seed on the ESP, which
|
||||||
|
# holds up boot ~1s mounting it. The VM has
|
||||||
|
# virtio-rng.
|
||||||
RemoveFiles=
|
RemoveFiles=
|
||||||
/usr/lib/modules/*/System.map
|
/usr/lib/modules/*/System.map
|
||||||
/usr/lib/udev/hwdb.bin
|
/usr/lib/udev/hwdb.bin
|
||||||
@@ -134,6 +141,9 @@ RemoveFiles=
|
|||||||
/usr/lib/systemd/system/systemd-userdbd.*
|
/usr/lib/systemd/system/systemd-userdbd.*
|
||||||
/usr/lib/systemd/system/systemd-nsresourced.*
|
/usr/lib/systemd/system/systemd-nsresourced.*
|
||||||
/usr/lib/systemd/system/sshd-keygen*
|
/usr/lib/systemd/system/sshd-keygen*
|
||||||
|
/afs
|
||||||
|
/buildroot
|
||||||
|
/usr/lib/systemd/system/systemd-boot-random-seed.service
|
||||||
|
|
||||||
[Validation]
|
[Validation]
|
||||||
# Sign systemd-boot and the UKI for Secure Boot, and put our keys on the ESP.
|
# Sign systemd-boot and the UKI for Secure Boot, and put our keys on the ESP.
|
||||||
@@ -152,7 +162,7 @@ SecureBootCertificate=mkosi.crt
|
|||||||
# to forward ssh to port 2222. Ephemeral boots a copy, so test runs don't
|
# to forward ssh to port 2222. Ephemeral boots a copy, so test runs don't
|
||||||
# change the built image.
|
# change the built image.
|
||||||
Ephemeral=yes
|
Ephemeral=yes
|
||||||
CPUs=8
|
CPUs=4
|
||||||
RAM=8G
|
RAM=8G
|
||||||
RuntimeSize=40G
|
RuntimeSize=40G
|
||||||
RuntimeNetwork=none
|
RuntimeNetwork=none
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
#
|
#
|
||||||
# /var is the only partition on disk that is written (mkosi.repart/30-var.conf).
|
# /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.
|
# x-systemd.growfs grows its filesystem to fill the partition at boot.
|
||||||
PARTLABEL=var /var xfs x-systemd.growfs 0 0
|
PARTLABEL=var /var ext4 x-systemd.growfs 0 2
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
[Partition]
|
[Partition]
|
||||||
Type=var
|
Type=var
|
||||||
Label=var
|
Label=var
|
||||||
Format=xfs
|
Format=ext4
|
||||||
CopyFiles=/var:/
|
CopyFiles=/var:/
|
||||||
Minimize=guess
|
Minimize=guess
|
||||||
SplitName=-
|
SplitName=-
|
||||||
Reference in new issue
Block a user