refactor: style pass, tools tree and fixes from a test build
os / os (push) Canceled after 0s

- Follow AGENTS.md style: headers start with the file's name, short
  notes are full sentences, comments within 80 columns.
- Build with mkosi's tools tree, pinned to the image's release
  (ToolsTreeRelease=%r): rawhide's repositories made the image rawhide.
- Incremental builds with mkosi.cache/ for faster local rebuilds.
- Hostname= instead of systemd.hostname= on the kernel command line.
- mkosi.finalize: bash, no cd, and L+ for /etc/systemd. PID 1 applies
  the presets at first boot and made /etc/systemd/system, which blocked
  the link, so /etc/systemd/user (the user's D-Bus) was missing.
- Disable homed, userdbd and nsresourced with presets instead of
  deleting their units. Drop modules the kernel has built in.
- mkosi.version adds the git commit to the version.
- One dev container per worktree or session in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-21 20:37:26 +01:00
1 parent c80e843cb5
commit 5255656258
26 files changed
+205 -243

No files matched your search

+2 -3
View File
@@ -1,6 +1,5 @@
# EFI system partition
#
# Holds systemd-boot and the UKIs, two versions at most.
# 00-esp.conf defines the EFI system partition. It holds systemd-boot and the
# UKIs, two versions at most.
[Partition]
Type=esp
Format=vfat
+4 -6
View File
@@ -1,9 +1,7 @@
# /usr, slot A
#
# The OS as read-only erofs, protected by dm-verity (usrhash= in the UKI).
# Updates replace it whole. The image holds nothing else but the ESP: the
# initrd makes the root filesystem, with /etc and /var, at first boot
# (mkosi.extra/usr/lib/repart.d/50-root.conf).
# 10-usr.conf defines /usr in slot A: the OS as read-only erofs, protected by
# dm-verity (usrhash= in the UKI). Updates replace it whole. The image holds
# nothing else but the ESP: the initrd makes the root filesystem, with /etc
# and /var, at first boot (mkosi.extra/usr/lib/repart.d/50-root.conf).
[Partition]
Type=usr
Label=%M_%A
+1 -3
View File
@@ -1,6 +1,4 @@
# /usr verity, slot A
#
# The dm-verity hashes of /usr in 10-usr.conf.
# 11-usr-verity.conf holds the dm-verity hashes of /usr in 10-usr.conf.
[Partition]
Type=usr-verity
Label=%M_%A_verity
+2 -3
View File
@@ -1,6 +1,5 @@
# /usr, slot B
#
# Empty until systemd-sysupdate writes the next version to it.
# 20-usr-b.conf defines /usr in slot B. It stays empty until systemd-sysupdate
# writes the next version to it.
[Partition]
Type=usr
Label=_empty
+2 -3
View File
@@ -1,6 +1,5 @@
# /usr verity, slot B
#
# The dm-verity hashes for 20-usr-b.conf, empty until the next update.
# 21-usr-verity-b.conf holds the dm-verity hashes for 20-usr-b.conf, empty
# until the next update.
[Partition]
Type=usr-verity
Label=_empty