feat(komodo): park-lab stack on its own 7070 (server park-lab, all modules); wiki: GRUB CLASS lines, dell-wmi-sysman admin password
Build & push images / images (push) Successful in 2m56s

- resources.toml: repoint the park-lab stack from art-docker-station to the
  dedicated park-lab Periphery; drop the shared-host port remaps
  (HTTP_PORT/SERVER_PORT/VISION_HOST_PORT); entitle every registered module
  (parking,validation,carwash); pin TAG=stage-9659373 (park-2's image).
- appliance-provisioning §5: both CLASS= lines in /etc/grub.d/10_linux work
  for --unrestricted (the else-branch interpolates the first); submenu stays
  restricted; conffile note.
- appliance-provisioning §1: authentication/Admin/is_enabled=1 means a BIOS
  admin password IS set; writes without it fail "Operation not supported",
  wrong ones "Permission denied"; feed it via read -rs.
- fleet-deployment-komodo: park-lab back on a dedicated box (2026-10-20),
  preflight list (docker group, periphery enable + linger, reboot so the user
  manager picks up the group), destroy the old stack on the previous host.
This commit is contained in:
2026-10-20 17:15:35 +02:00
parent 005447f938
commit e842f036e2
4 changed files with 55 additions and 22 deletions
+21 -4
View File
@@ -47,8 +47,13 @@ addresses, tools, hand steps, traps) have their own field runbook: [[site-device
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`).
`authentication/Admin/is_enabled` = 1 means an admin password **is** set (it is the BIOS
IsPasswordSet flag) and then every attribute write must carry it: a write **without** it fails
`Operation not supported (os error 95)` (park-lab 2026-10-20), a **wrong** one `Permission denied`
(park-2 2026-10-17). Feed it with `read -rs PW; printf '%s' "$PW" | sudo tee
authentication/Admin/current_password` so it never enters shell history; the driver keeps it in
memory until reboot. `is_enabled` = 0 → write attributes directly and set a password via
`authentication/Admin/new_password`.
## 2. Boot the Ubuntu 26.04 USB (Secure Boot ON)
@@ -195,11 +200,23 @@ set superusers="admin"
password_pbkdf2 admin grub.pbkdf2.sha512.10000.<YOUR_HASH>
```
Make menu entries bootable WITHOUT the password (edit-only) — in `/etc/grub.d/10_linux`, set the
active `CLASS=` line to include `--unrestricted`:
Make menu entries bootable WITHOUT the password (edit-only) — append `--unrestricted` to the
`CLASS=` variable in `/etc/grub.d/10_linux`. The file has **two** `CLASS=` lines: the plain default
near the top, and one inside the `else` branch of the `GRUB_DISTRIBUTOR` check that prepends
`--class ubuntu` and interpolates `${CLASS}` (that branch is the one Ubuntu actually takes). Editing
**either** works, because the second line carries the first one's value through — park-2 edited the
first, a 2026-10-20 unit edited the second; both yield identical `menuentry` lines:
```
CLASS="--class gnu-linux --class gnu --class os --unrestricted"
# — or —
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS} --unrestricted"
```
`${CLASS}` is expanded into every `menuentry '…' ${CLASS} $menuentry_id_option …` line, so each OS
entry becomes `--class ubuntu --class gnu-linux --class gnu --class os --unrestricted`. The
"Advanced options for Ubuntu" `submenu` has no `${CLASS}` and so stays restricted (opening it asks
for the GRUB password) — intended; the default top-level entry is what unattended boot uses.
`/etc/grub.d/10_linux` is a dpkg conffile of `grub-common`: a GRUB package upgrade keeps the local
edit by default, but re-check `grep -c unrestricted /boot/grub/grub.cfg` after any grub upgrade.
Regenerate + VERIFY BOTH HALVES landed in the real config BEFORE rebooting (a GRUB misconfig means a
rescue-USB recovery):
+16 -2
View File
@@ -2,7 +2,7 @@
type: decision
tags: [parking, deployment, fleet, komodo, netbird, offline-first, threat-model]
sources: []
updated: 2026-09-03
updated: 2026-10-20
status: settled
---
@@ -199,7 +199,21 @@ publish.
## park-lab — the lab bench joins the fleet (2026-07-07)
> **2026-10-08 — park-lab now runs on `art-docker-station`** (`server = "art-docker-station"`,
> **2026-10-20 — park-lab is a dedicated OptiPlex 7070 again** (`server = "park-lab"`, Periphery
> `connect_as = park-lab`, Netbird `park-lab.nb.infra`, device-net `10.0.10.198`), provisioned
> per [[appliance-provisioning]] (LUKS + TPM auto-unlock, Secure Boot, GRUB edit-lock, fwupd
> masked) but with ONE account (`park-systems`, sudo) because it is a test bench, not a booth.
> The art-docker-station remap below is history: the stack env drops `HTTP_PORT` /
> `SERVER_PORT` / `VISION_HOST_PORT` (UI back on `http://park-lab/`), and it is the only stack
> entitled to **every** module (`MODULES_ENTITLED=parking,validation,carwash`) so each feature
> can be exercised on the bench. Destroy the old `park-lab` containers on art-docker-station
> before the sync executes — changing a Stack's `server` does not tear down the previous host.
> Preflight on the box before the first deploy: Docker engine + `park-systems` in `docker`,
> `systemctl --user enable --now periphery` + `loginctl enable-linger park-systems` (both were
> missing on 2026-10-20 — the unit ran but was disabled, same as 2026-09-09's gotcha), delete
> the onboarding key in Core.
> **2026-10-08 — park-lab ran on `art-docker-station` (superseded 2026-10-20, kept for the remap knobs)** (`server = "art-docker-station"`,
> the same Periphery that hosts `wash-collector`), so the app can be exercised without the lab
> box. That host's `:80` is taken, so the stack env sets **`HTTP_PORT=8080`, `SERVER_PORT=3100`,
> `VISION_HOST_PORT=8189`** — three new variables honoured by `docker-compose.prod.yml` and the
+2
View File
@@ -3545,3 +3545,5 @@ again showing Dell LED code **2,7** = display/graphics POST failure → system b
7070: slot-0 passphrase, TPM re-enrolled (PCR 7), unattended reboot verified, AC Recovery On, Block Sleep
set via dell-wmi-sysman; no BIOS admin password on the replacement yet. Ledger chain and SQLite intact
after two unclean stops. [[appliance-provisioning]] §1/§8 + gotchas 7–8.
## [2026-10-20] ingest | park-lab back on a dedicated 7070 (server = park-lab, all modules entitled); GRUB CLASS line clarified in appliance-provisioning §5