Skip to content

docs(heimdall): mask systemd-rfkill - #1764

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/heimdall-mask-rfkill
Nov 26, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/heimdall-mask-rfkill

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 26, 2026

Copy link
Copy Markdown
Owner

What changed

build-heimdall.md §2 masks systemd-rfkill.service and systemd-rfkill.socket beside the disable-bt step, and §9 has the undo. A changelog entry records why, and that it is applied on heimdall.

Why

The first boot with Bluetooth off (2026-11-25 15:53 PST, from #1745's hardening) hung systemd-rfkill.service for its full 90 s timeout and failed it, so DisplayUnitFailed fired. It had finished normally on the three boots before. Run again by hand with debug logging, it found only the Wi-Fi switch and exited at once, so the cause is not known. Wi-Fi is the only radio left and nothing on the Pi switches it, so the service has no job. Masking it keeps one boot-time hang from paging again.

Refs #1745

Blast radius

heimdall only. With the unit masked, a radio's soft-block state is no longer saved or restored across boots. Wi-Fi is unblocked (rfkill0 soft 0, hard 0) and nothing blocks it. If something ever did, it would stay blocked across a reboot until rfkill unblock wlan, and the Pi would show as DisplayDown after two hours.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

On heimdall: systemctl mask --now systemd-rfkill.service systemd-rfkill.socket, then systemctl is-enabled reads masked for both, systemctl --failed is empty, and /sys/class/rfkill/rfkill0/soft reads 0. DisplayUnitFailed had cleared at 16:17 once the unit was started successfully, before the mask.

Locally: python3 scripts/check_docs.py passes. ./scripts/lint.sh: yamllint, shellcheck, ruff and actionlint pass; markdownlint-cli2, zizmor, packer, tofu and editorconfig-checker were skipped (no docker daemon); ansible-lint failed setting up its tool environment, not on any file, and this PR touches no Ansible. CI runs all of them.

  • make validate passes (not run; docs only)
  • Deployed to the lab and confirmed working
  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

Gerrrt and others added 2 commits November 25, 2026 21:08
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 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit 8131922 into main Nov 26, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/heimdall-mask-rfkill branch November 26, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant