Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-16

- **No clone of template 901 puts its user in `lxd`.** A second live
re-check of `eden` found `garnet` in the `lxd` group, from the default
user groups in Ubuntu's `/etc/cloud/cloud.cfg`. LXD is not installed on
any clone, so it granted nothing, but it was not chosen. `garnet` was taken
out of the group on `eden`, and `eden`'s `cloud.cfg` edited to match. The
Ubuntu build now removes `lxd` from those groups after its upgrade and
fails if it is still there. `cloud.cfg` is a conffile, so unattended
upgrades keep the change; a hand-run `apt full-upgrade` asks before
replacing it. Not built yet: 901 has it from its next Ubuntu build. The
same check found 915 MB of linter images, pulled to `eden` by this day's
`lint.sh` runs through its Docker fallback, and two empty anonymous Postgres
volumes from the 2026-11-14 `make validate`. Both were removed. Every
audit finding held on the box after the 09:36 reboot.

- **Template 901 is rebuilt without `autoinstall` on its kernel line.** This
completes *Template 901 takes `autoinstall` off the kernel line* below,
which left it not built. The Ubuntu build ran from `phoenix` on main after
Expand Down
7 changes: 4 additions & 3 deletions docs/runbooks/build-the-lab-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,10 @@ What each one does, so a stall can be placed:
`packer` with `phoenix`'s key. `packer/ubuntu/prune.sh` purges the
server seed's services no clone uses (VMware tools, ModemManager, snapd,
thermald, multipath, iSCSI, kdump, udisks2), takes the installer's
`autoinstall` off the kernel line, and fails the build if any of that is left. Packer then upgrades, turns off X11 forwarding, and wipes
cloud-init's state, machine-id and host keys. It then deletes the `packer`
user.
`autoinstall` off the kernel line, and fails the build if any of that is
left. Packer then upgrades, turns off X11 forwarding, takes `lxd` out of
cloud-init's default user groups, and wipes cloud-init's state, machine-id
and host keys. It then deletes the `packer` user.
- **Fedora** picks "Install Fedora" from the GRUB menu, whose default is
the media check. Anaconda finds `ks.cfg` on the `OEMDRV` disc by itself,
installs Server unattended in text mode, and reboots. The rest is
Expand Down
6 changes: 6 additions & 0 deletions packer/ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ build {
# display. sshd takes the first value it reads, and the drop-ins are
# included before the main file's line, so this wins.
"printf 'X11Forwarding no\\n' > /etc/ssh/sshd_config.d/10-no-x11.conf",
# cloud-init gives the clone's user Ubuntu's default groups, lxd among
# them, and LXD is not installed on any clone. After the upgrade, so
# the upgrade cannot put it back; cloud.cfg is a conffile, and
# unattended-upgrades keeps a changed one.
"sed -i '/^ *groups: \\[/s/, lxd//' /etc/cloud/cloud.cfg",
"if grep -qE '^ *groups: .*lxd' /etc/cloud/cloud.cfg; then echo 'lxd is still in cloud.cfg default groups' >&2; exit 1; fi",
"cloud-init clean --logs --machine-id",
]
}
Expand Down
Loading