Repository navigation
docs(lab): record template 901 rebuilt; smoke-test for a leftover packer user - #1571
Merged
Merged
Conversation
…ker user 901 was rebuilt with no-initramfs-network.sh and packer-smoke.sh 901 passed, no DHCP before switch-root included. The rebuild's userdel printed a busy warning that -f goes past, but `|| true` would hide a failed delete, so the smoke test now fails a Linux clone that still has a packer user. Refs #1569 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
An SSH failure terminates the smoke-test script before it can report the cause, while discarded stderr leaves the operator without a useful diagnostic.
1 open issue
What changed in this PR
Records template 901’s completed rebuild after the initramfs networking fix and strengthens Linux template smoke validation.
Changes:
- Adds a check that rejects Linux clones retaining the
packerbuild account. - Records the rebuild and successful existing smoke checks, including no DHCP before switch-root.
- Documents the new account check, which has not yet been exercised against a real clone.
| File | Description |
|---|---|
scripts/packer-smoke.sh |
Checks Linux clones for a leftover packer account. |
docs/runbooks/build-the-lab-templates.md |
Explains the added smoke-test check. |
docs/changelog.md |
Records the template rebuild, verification, and cleanup check. |
Review effort: Balanced
Gerrrt
enabled auto-merge (squash)
November 18, 2026 18:02
Under set -e a failed x="$(ssh … 2>/dev/null)" ended the script with nothing printed. The packer-user, early-DHCP and Panther checks now go through ssh_run, which prints ssh's stderr and the exit status before it dies. Refs #1569 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
docs/changelog.md: a 2026-11-18 entry recording that template901was rebuilt onphoenixwithno-initramfs-network.sh(feat(packer): build 901 without networking in its initramfs #1569) and thatscripts/packer-smoke.sh 901passed,no DHCP before switch-rootamong its checks. It completes the earlier same-dayedenentry, which said901had not been rebuilt.scripts/packer-smoke.sh: the Linux branch now fails a clone that still has apackeruser. It runsgetent passwd packerover SSH assmoke, which needs no sudo; exit 2 passes, 0 fails, anything else fails as "could not check".docs/runbooks/build-the-lab-templates.md§6: the smoke paragraph names the new check.Why
The rebuild's last provisioner printed
userdel: user packer is currently used by process 1392. With-fthat is only a warning, and the mail-spool line after it shows the delete went on. But the step ends in|| true, so a failed delete would not fail the build, and nothing checked afterwards. Every ISO-built Linux template uses the same step.Blast radius
gentoo) passes the check trivially.901keep their old initramfs;eden, the one the lease check found, already has its §2 step.Verification
packer build -force -only='ubuntu.*' packer/onphoenix, 24 min 31 s.no-initramfs-network.shrebuilt 1 image (7.0.0-43) and itslsinitrdcheck passed.scripts/packer-smoke.sh 901passed every check.packer-smoke.sh 901exercises it.bash -nandshellcheckpass on the script, andcheck_docs.pypasses.lint.shon the Mac passes yamllint, shellcheck, ruff and actionlint (local binaries, not the pinned ones) and skips everything that needs a docker daemon (markdownlint-cli2, zizmor, packer, tofu, editorconfig-checker), andansible-lintfails on the Mac's runner (--pip-argshas nouv tool runequivalent), which is environmental and unrelated: this PR touches no Ansible. CI runs them all.Refs #1569
🤖 Generated with Claude Code