docs(wiki): park-2 host failure (Dell 2,7), AC Recovery/Block Sleep BIOS rules, SSD-to-replacement-PC runbook

This commit is contained in:
2026-10-17 18:32:45 +02:00
parent 06d9297e9a
commit 005447f938
2 changed files with 46 additions and 1 deletions
+36 -1
View File
@@ -2,7 +2,7 @@
type: reference
tags: [parking, deployment, appliance, hardening, runbook, offline-first]
sources: []
updated: 2026-09-02
updated: 2026-10-17
status: settled
---
@@ -41,6 +41,14 @@ addresses, tools, hand steps, traps) have their own field runbook: [[site-device
(step 2).
- **Boot**: UEFI only (no CSM/Legacy — a Legacy install has no Secure Boot / TPM-seal path).
- Set a **BIOS admin password**.
- **Power Management → AC Recovery: On** (Dell default is **Off** = after a mains cut the box stays
off, dark LED, until someone presses the button — this is what kept park-2 down for 50 min on
2026-10-14). **Block Sleep: Enabled** (a booth must never be suspendable from the GNOME menu).
Both are also settable from Linux without a site visit via `dell-wmi-sysman`:
`cd /sys/class/firmware-attributes/dell-wmi-sysman; echo -n '<admin pw>' | sudo tee authentication/Admin/current_password;
echo On | sudo tee attributes/AcPwrRcvry/current_value; echo Enabled | sudo tee attributes/BlockSleep/current_value`
(a write that returns `Permission denied` = wrong/missing admin password; with **no** admin
password set, write the attribute directly and set one via `authentication/Admin/new_password`).
## 2. Boot the Ubuntu 26.04 USB (Secure Boot ON)
@@ -490,6 +498,29 @@ on first launch (`127.0.0.1:3000` on the booth itself, or any `<ip>:3000` / `<na
nothing is baked in since v0.1.5. In-app updates need the **admin** password (polkit) — by
decision, updates are an admin action, so plan to be at the box when bringing it online for one.
## 8. Moving the SSD to a replacement PC (VERIFIED 2026-10-17, park-2)
The hardening is designed to survive a board swap; nothing is "un-hardened". The host failed with Dell
pre-boot LED code **2,7** (2 amber / 7 white = display/graphics subsystem POST failure, i.e. system
board) and the SSD went into another OptiPlex 7070:
1. New PC BIOS per §1: **SATA = AHCI** (Dell default RAID hides the disk from Linux), UEFI only,
Secure Boot Enabled/Deployed with stock MS keys, TPM on + cleared, **AC Recovery On**, admin password.
2. First boot: GRUB (edit-lock intact) → the new TPM's PCR 7 doesn't match → **slot-0 passphrase
prompt** (the escrowed install passphrase — without it the disk is unreadable anywhere but the old
PC's TPM). Type it.
3. Re-bind: `sudo systemd-cryptenroll --wipe-slot=tpm2 --tpm2-device=auto --tpm2-pcrs=7 /dev/sda3`,
confirm slots `0 password / 1 tpm2`, `sudo reboot` → must reach the login with no prompt.
4. Everything else travels with the disk (Netbird/Komodo identity, Docker + DB, operator autologin,
GRUB password, masked fwupd). Check `ip -br addr`: the device-net address (10.0.10.101 at park-2)
is bound to the interface name in netplan — same model ⇒ same `eno1`, a different board may rename it.
5. After an unclean stop: `docker logs <server>` with no tail / `--tail ≥ ~10k` / any `--since` stops at
the crash and hides post-boot lines (json-file reader quirk); `--tail ≤ 5000` works. Use the DB
(`app_logs`, `device_events`, `ledger_events`) for the booth's own history. SQLite WAL + the ledger's
index/prev_hash chain survived two unclean stops intact.
6. Hikvision cameras cold-booted by the same power cut come back with clocks at 1970; the device
monitor re-syncs them within ~2 min (an offset of ~1.79e9 s in `app_logs` = camera power cycle).
## Quick-reference: the gotchas, in order they bit us
1. Ventoy USB → `0x1A` Security Violation under Secure Boot → flash the ISO directly instead.
@@ -499,6 +530,10 @@ decision, updates are an admin action, so plan to be at the box when bringing it
5. Always keep the **password slot** + an off-machine copy of the passphrase (TPM is never the only key).
6. GRUB password MUST be **edit-only** (`--unrestricted` on entries) or it prompts on EVERY boot →
breaks unattended reboot. Verify `grep -c unrestricted /boot/grub/grub.cfg` ≥1 before rebooting.
7. Dell **AC Recovery defaults to Off** → a power-cut booth stays off until a human presses the button
(park-2, 2026-10-14). Set it **On** at provisioning (§1).
8. A Dell that is "frozen, black screen, blinking LED" may be a **failed board**: read the blink code
(amber count, white count). 2,7 = graphics/display POST failure → swap the PC, move the SSD (§8).
### Firmware / dbx gotchas (2026-06-30, §4a)