Fix what a real install showed

- systemd-sysusers failed after an update: the image has no login.defs,
  so its factory link pointed at itself. The link goes.
- The first boot had another hostname than later boots, because
  /etc/hostname only exists once tmpfiles links it. The first boot is
  when the runner registers, under that name. The kernel command line
  now sets the hostname, which PID 1 has from the start.
- The README promised a recovery key that doesn't exist. The disk only
  unlocks with the TPM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-23 19:36:47 +00:00
1 parent 6ebddf18ce
commit 3b10f60fab
3 files changed
+7 -7

No files matched your search

+5 -3
View File
@@ -29,8 +29,6 @@ ManifestFormat=json
[Content]
# Content sets what goes into the image:
# - Hostname is runneros- and four hex digits of the machine ID. It is also
# the name the runner registers with.
# - WithDocs leaves out man pages. The image has no man to read them.
# - Packages lists the packages installed into the image.
# - ExtraTrees copies the job image (mkosi.images/job/) into /usr.
@@ -39,6 +37,10 @@ ManifestFormat=json
# - KernelCommandLine:
# - rw has the initrd mount the root filesystem writable. It finds it by its
# partition type (mkosi.extra/usr/lib/repart.d/50-root.conf).
# - The hostname is runneros- and four hex digits of the machine ID, also
# the name the runner registers with. Unlike /etc/hostname, which only
# exists once tmpfiles links it, the command line has it from the first
# boot on.
# - The image policy only accepts an encrypted root filesystem (or none, at
# first boot) and a verity-checked /usr. Otherwise someone with the disk
# could swap in a plain root filesystem. Our UKI would boot it, and their
@@ -57,7 +59,6 @@ ManifestFormat=json
# - RemoveFiles drops System.map, which is only for debugging the kernel, and
# the udev hwdb, which holds hardware names and quirks a VM doesn't need.
# Without hwdb.d, systemd-hwdb-update can't build it again at boot.
Hostname=runneros-????
WithDocs=no
Packages=
kernel-core # Unlike kernel, this has no extra drivers.
@@ -81,6 +82,7 @@ UnifiedKernelImageFormat=%i_%v
KernelCommandLine=
quiet
rw
systemd.hostname=runneros-????
systemd.image_policy=root=encrypted+absent:usr=verity:esp=unprotected
systemd.setenv=SYSTEMD_REPART_MKFS_OPTIONS_BTRFS=--metadata=single
SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST=50