8000 fix(install): don't order gadgetcast after cloud-init.target by adeelahmad · Pull Request #29 · adeelahmad/gadgetcast · GitHub
[go: up one dir, main page]

Skip to content

fix(install): don't order gadgetcast after cloud-init.target - #29

Merged
adeelahmad merged 1 commit into
masterfrom
claude/project-thread-65265y
Oct 17, 2026
Merged

adeelahmad merged 1 commit into
masterfrom
claude/project-thread-65265y

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Before: on a freshly flashed Pi image's first boot, systemd logged Found ordering cycle on gadgetcast.service/start … cloud-init.target … multi-user.target and skipped gadgetcast. The web UI never came up until a later boot.

After: gadgetcast waits for the cloud-init stages that apply Raspberry Pi Imager's hostname, user and Wi-Fi settings (cloud-init.service, cloud-config.service), and starts on first boot.

How: cloud-init.target is After=multi-user.target, while gadgetcast.service is WantedBy=multi-user.target and was After=cloud-init.target. That is a cycle. Ordering after the two services removes it, because neither one is ordered after multi-user.target. I checked this against the cloud-init 26.1 unit files. If a unit doesn't exist on a system, ordering after it is a no-op.

Test level: the cycle was seen in a QEMU (raspi3b) boot of the locally built arm64 v0.1.0 image, and its cause was traced to the unit files. The fix is checked with sh -n and by reading cloud-init's unit ordering. A QEMU first-boot re-test of the patched image comes next. Not tested on real Pi hardware.


Generated by Claude Code

cloud-init.target is ordered after multi-user.target, while gadgetcast
is wanted by multi-user.target and ordered after cloud-init.target. On
a flashed image's first boot systemd found the cycle and skipped
gadgetcast.service. Order after the cloud-init stages that apply the
Imager settings (cloud-init.service, cloud-config.service) instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K4B4YKMC6fT9oWCCwWgt9S
@adeelahmad
adeelahmad merged commit 9fc3458 into master Oct 17, 2026
0 of 3 checks passed
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.

2 participants

0