feat/live-usb-0.15.1-p6-rc1 #73
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/live-usb-0.15.1-p6-rc1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
accountsservice's daemon is dbus-activated as root and requires /etc/machine-id. A stock image has no such file (FreeBSD base does not create it and this image never did), so every request to org.freedesktop.Accounts spawned the daemon, which called g_error("Failed to read machine-id: ... No such file or directory") and aborted: pid 8465 (accounts-daemon), jid 0, uid 0: exited on signal 6 (core dumped) Repeated eight times by 12:52, each dropping a ~12 MB core at / because kern.corefile is %N.core and the daemon's cwd is /. clawdie_hostkey already runs before sshd and LOGIN, which is exactly when SDDM's greeter first asks Accounts for the user list, so it now also runs `dbus-uuidgen --ensure=/etc/machine-id` when the file is missing or empty. That keeps identity per-stick rather than baked into the image, matching how the image already treats SSH host keys, and needs no running daemon. TESTING.md asserts the hook carries the generation step.The image already had a canonical hive identity: clawdie_password_setup writes /var/db/clawdie/machine-id ("generate once, persist forever", uuidgen). The /etc/machine-id hook added earlier for accountsservice generated an unrelated id, so this node carried two identities: /var/db/clawdie/machine-id 8dc57627-e00e-11f1-87be-38fc987cd602 (dashed uuid) /etc/machine-id 91b33c271207678689ad73826af8a3e4 (32 hex) - clawdie_password_setup now writes the standard 32-hex form, so the canonical id can be mirrored verbatim instead of becoming a second textual identity. - clawdie_hostkey mirrors the canonical id onto /etc/machine-id. Whichever hook runs first, both converge: it seeds the canonical from /etc when absent, and rewrites /etc from the canonical when they differ. Verified by running the real mirror block against a temp root in four states (canonical absent, canonical dashed, /etc absent, already equal) - all converge. That harness also caught a live bug in the first version: `tr -d '-\n'` fails on this tr because the set starts with '-', so dashes were never stripped; replaced with sed. TESTING.md asserts the invariant.Adds the one durable lesson from the third Jev pass to the section that warns about using jev_probe for background checks: --dump-response writes {schema, results:{...}} with the payload as a JSON string under results.probe (results.packet in a batch dir), so naive key access returns None and reads as "results missing" when the data is on disk. Also notes that rebuilding packets to "fix" it leaves stale duplicates, and that broken matrix.json siblings make the good one easy to miss. No matrix or probe output is committed: two of the three on-disk matrix.json copies are broken artifacts (an empty dict and a list of None values), the single confident cell is mechanism-false, and the corrected summary already lives in this section.Three items from the 14.nov live-USB recon that had to land before this branch could merge, plus the regression coverage that was missing for the second one. 1. capture/13-touchpad-libinput.sh: `\(` is a literal paren in ERE, but scripts/tests/freebsd-portability-test.sh reads it as an empty alternation branch, so ./scripts/ci-checks.sh failed on a documentation capture script. `[(]` is the portable spelling and matches the same text. No PNG or SHA256SUMS entry changes. 2. firstboot/retarget-be.sh now scrubs ${MNT}/etc/machine-id along with var/db/clawdie/machine-id. Since clawdie_hostkey seeds the canonical hive id from /etc/machine-id when the canonical file is absent, leaving the live /etc/machine-id on the sent BE re-imports the USB stick's identity on the installed host: every node installed from the same stick reports the same Name. dbus-uuidgen --ensure regenerates it at first boot. retarget-be-test.sh now asserts the scrub in the RUN_FIRSTBOOT=no scenario and that DRY_RUN=1 leaves it alone. 3. docs/devbuild-live-iso-report.md: annotate §2 reason 4. The unprivileged `service sshd status` reading in figure 9 is a false negative under security.bsd.see_other_uids=0, not evidence that sshd is down. The screenshot stays as captured; the erratum is recorded in the prose and the okf block. Gates: ./scripts/ci-checks.sh green through every suite except the herdr-agent-state `go test -race` gate, which cannot run in this session at all (ThreadSanitizer OOM against the shell's 1.75 GiB hard RLIMIT_AS; reproduced on the unmodified tree). scripts/tests/freebsd-portability-test.sh 7/7, tests/retarget-be-test.sh 64/64, and the post-gate suites (server-matrix-and-oxigraph-harvest 31/31, jev-stage-gate 52/52, sovereign-petelin-stepup 29/29, assert-image-no-secrets 95 checks) pass.The 14.nov live-USB boot opened zero terminal windows. Measured cause, reproduced against real herdr 0.9.5 on debby and previously on valhala: herdr 0.9.5 boots headless with zero workspaces and zero panes, so `pane list` answers {"result":{"panes":[]}}. herdr_extract_pane_ids() found no `"pane_id"` and fell through to `awk 'NF > 0 { print $1 }'`, which returned the raw JSON blob as the first pane id. `pane run <json>` failed with pane_not_found, layout_error exited 1, and the script died before spawn_terminal_bg/kitty ever ran. clawdie-bootstrap-launch.sh had already exited 0 because firstboot-confirm was seeded, so nothing else raised the desktop either. Fixes, all in the launcher (Wave B scope): - herdr_extract_pane_ids(): a JSON payload only yields pane ids when it carries `"pane_id"` fields. JSON without them now yields nothing; the whitespace splitter is only used for non-JSON input. - ensure_herdr_session(): when the session has no pane, ask for one with `herdr --session <s> workspace create --label <label>` and re-query `pane list` for the id. The headless server is now started with `</dev/null >/dev/null 2>&1 &` so it cannot hold the launcher's terminal. - ensure_herdr_session() reports failures via herdr_layout_fail() and returns non-zero instead of exiting, and the herdr layout moved into run_herdr_layout(). Under CLAWDIE_MUX_BACKEND=auto a failed herdr layout now warns and falls back to tmux so the operator never lands on a blank desktop; an explicit CLAWDIE_MUX_BACKEND=herdr still fails loudly rather than switching backends silently. - clawdie-firstboot-confirm.desktop: absolute Exec=/usr/local/bin/terminal-firstboot-wrapper.sh, matching every sibling autostart entry. tests/max2-herdr-layout-test.sh: - the mock herdr server now starts empty (`panes:[]`) like the real binary and only creates `w1:p1` on `workspace create`, which is what the old stub hid. Against the previous wrapper the updated test fails ("empty herdr server is given a workspace"), so the regression is covered. - new Case 6: auto -> tmux fallback on herdr failure, and explicit herdr -> exit 1 with no Kitty window. - new Case 7: real herdr in an isolated XDG_CONFIG_HOME (opt out with CLAWDIE_TEST_REAL_HERDR=0) asserts two panes per session and the Max2/Stats labels, then stops each server through its own API and proves the pid is gone. No host process is ever matched or killed by name. Gates: max2-herdr-layout 30/30 (with real herdr 0.9.5), xfce-session-inner 29/29, firstboot-confirm-fallback 19/19, password-setup 31/31, freebsd-portability 7/7, markdown/date/okf/wiki-lint clean.timeouton the real-herdr case (Sam & Pi) 1b214c5f32- Stage all 4 Firefox XPIs under /usr/local/share/clawdie-iso/firefox-extensions (cached in CACHE_DIR/firefox-extensions) and install via ExtensionSettings normal_installed so Firefox sets installType=admin, suppressing Bitwarden's browser-start promo tab while keeping offline installation intact. - Pin Bitwarden ({446900e4-71c2-419f-a6a7-df9c091e268b}) directly to the navbar, tuck uBlock Origin, SponsorBlock, and IDCAC into menupanel, pre-configure Bitwarden's 3rdparty managed environment.base to https://vault.clawdie.si, and disable Firefox's built-in password manager prompt. - Suppress Firefox Privacy Notice, about:welcome, telemetry/study prompts, and sponsored New Tab tiles via enterprise policies.json. - Pre-seed clawdie.default-release with SponsorBlock alreadyInstalled=true in clawdie-xfce-session-inner (ensure_firefox_profile) so SponsorBlock migrates cleanly to IndexedDB without opening /help/index.html on first launch.