From b0f6c857c334d932176c0cc697dad52df9d3f9f2 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Wed, 25 Nov 2026 21:08:06 -0800 Subject: [PATCH] docs(heimdall): mask systemd-rfkill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first boot with Bluetooth off, 2026-11-25 15:53, hung systemd-rfkill.service for its full 90 s and failed it, which fired DisplayUnitFailed. It ran clean when retried, so the cause is unknown, but nothing on the Pi switches a radio. §2 masks the service and its socket; §9 has the undo. Applied on heimdall the same day. Co-Authored-By: Claude Opus 5.5 --- docs/changelog.md | 10 ++++++++++ docs/runbooks/build-heimdall.md | 15 ++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 3eb5dd25..f3b898ed 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,16 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-25 +- **`build-heimdall.md` §2 masks `systemd-rfkill`.** The reboot that + confirmed the entry "`heimdall` runs the hardening `build-heimdall.md` §2 + added today", at 15:53, was the first boot with Bluetooth off. + `systemd-rfkill.service` hung for its full 90 seconds on it and failed, and + `DisplayUnitFailed` fired. It had finished normally on the three boots + before. Run again by hand at 16:15, it found only the Wi-Fi switch and + exited at once, so the cause is not known. Nothing on the Pi switches a + radio, so §2 now masks the service and its socket, with the undo in §9. + Applied on `heimdall` the same day. + - **`smaug`: three decided changes applied, from a session on the box.** The rest of what the 2026-11-13 audit found is still the operator's: §6.12 (TrueNAS Connect), eno1's static address, the media redeploy, the diff --git a/docs/runbooks/build-heimdall.md b/docs/runbooks/build-heimdall.md index 5d133385..0ec95359 100644 --- a/docs/runbooks/build-heimdall.md +++ b/docs/runbooks/build-heimdall.md @@ -242,15 +242,23 @@ off at boot. Firefox and VLC come with the desktop, and the kiosk uses neither. They are most of the Pi's updates: on 2026-11-24, 16 of its 18 pending upgrades were VLC's. The desktop's `rpd-applications` only recommends them, so purging them removes nothing else the Pi uses. -`--autoremove` takes their libraries with them, about 40 packages: +`--autoremove` takes their libraries with them, about 40 packages. + +`systemd-rfkill` saves and restores whether each radio is switched off. With +Bluetooth gone, Wi-Fi is the only radio left, and nothing on the Pi switches +it. On the first boot after the overlay, on 2026-11-25, the service hung for +its full 90 seconds and failed, which fired `DisplayUnitFailed`. It did not +hang when run again, but nothing needs it, so mask it: ```bash sudo cp /boot/firmware/config.txt /boot/firmware/config.txt.bak printf '\ndtoverlay=disable-bt\n' | sudo tee -a /boot/firmware/config.txt # last section is [all] sudo apt purge -y --autoremove firefox vlc +sudo systemctl mask --now systemd-rfkill.service systemd-rfkill.socket ``` -After §3's reboot, `ls /sys/class/bluetooth` prints nothing. +After §3's reboot, `ls /sys/class/bluetooth` prints nothing, and +`systemctl --failed` lists nothing. ### Nothing at the console but a login @@ -517,7 +525,8 @@ the roadmap's *Everything still to buy* and an ADR of its own. - **The console:** `sudo systemctl unmask --now serial-getty@ttyAMA10.service`. `sudo raspi-config nonint do_boot_behaviour B4` writes the `tty1` autologin back, along with the desktop's. -- **The radio and the apps:** restore `/boot/firmware/config.txt.bak`, and +- **The radio and the apps:** restore `/boot/firmware/config.txt.bak`, + `sudo systemctl unmask systemd-rfkill.service systemd-rfkill.socket`, and `sudo apt install firefox vlc`. - **sudo without a password, and the seed files:** neither comes back. A fresh card from the Imager has both.