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
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user