Fix what a real install showed #3

Merged
Job79 merged 2 commits from first-boot-fixes into main 2026-11-23 19:52:45 +00:00
Owner

Found by installing the published qcow2 on a fresh VM (Secure Boot firmware in setup mode, software TPM), letting it build its own next version, and updating to it.

  • sysusers failed after the update: Failed to read /etc/login.defs: Too many levels of symbolic links. The image has no shadow-utils, so nothing provides login.defs, and its factory link pointed at itself. The L /etc/login.defs line goes. Tested: systemd-sysusers exits 0.

  • First-boot hostname: the first boot was runneros-6a9c and every later boot runneros-8d03, with the same machine ID. /etc/hostname only exists once tmpfiles links it, after PID 1 set the hostname. The first boot is when the runner registers, so it got the wrong name. systemd.hostname=runneros-???? on the kernel command line replaces Hostname= (and the /etc/hostname link). Tested: both boots are runneros-994e.

  • README: it promised a recovery key, but the disk only has a TPM slot (systemd-cryptenroll shows only tpm2). It now says to reinstall if the TPM is lost.

  • Factory reset: tested, it works. The firmware asks to clear the TPM first (F12 to clear), which the README now says.

🤖 Generated with Claude Code

Found by installing the published qcow2 on a fresh VM (Secure Boot firmware in setup mode, software TPM), letting it build its own next version, and updating to it. - **sysusers failed after the update:** `Failed to read /etc/login.defs: Too many levels of symbolic links`. The image has no shadow-utils, so nothing provides login.defs, and its factory link pointed at itself. The `L /etc/login.defs` line goes. Tested: `systemd-sysusers` exits 0. - **First-boot hostname:** the first boot was `runneros-6a9c` and every later boot `runneros-8d03`, with the same machine ID. `/etc/hostname` only exists once tmpfiles links it, after PID 1 set the hostname. The first boot is when the runner registers, so it got the wrong name. `systemd.hostname=runneros-????` on the kernel command line replaces `Hostname=` (and the `/etc/hostname` link). Tested: both boots are `runneros-994e`. - **README:** it promised a recovery key, but the disk only has a TPM slot (`systemd-cryptenroll` shows only `tpm2`). It now says to reinstall if the TPM is lost. - **Factory reset:** tested, it works. The firmware asks to clear the TPM first (F12 to clear), which the README now says. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Job79 added 1 commit 2026-11-23 19:36:48 +00:00
- 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>
Job79 added 1 commit 2026-11-23 19:40:02 +00:00
Job79 merged commit bd98edbf3e into main 2026-11-23 19:52:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Job79/runneros#3