Skip to content

Invoke bg-update via bash so bookworm noexec on runtime tmpfs does not block updates#7

Merged
d4rken merged 1 commit into
devfrom
fix/run-update-bookworm-noexec
May 21, 2026
Merged

Invoke bg-update via bash so bookworm noexec on runtime tmpfs does not block updates#7
d4rken merged 1 commit into
devfrom
fix/run-update-bookworm-noexec

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 21, 2026

On bookworm (Debian 12, the current and 2025 Pi-OS-based feeder image base), the runtime tmpfs is mounted noexec by default. run-update.sh copies bg-update.sh to that tmpfs and asks systemd-run to execute it directly, which fails with Permission denied — the Update Feeder button is unusable on the entire bookworm-based fleet.

Invoke bg-update.sh via bash so the noexec mount option does not apply; the script only needs to be readable. Bullseye is unaffected (its runtime tmpfs is exec-allowed by default).

Reproduced on a 2025 image; same flow runs cleanly on a bullseye 2023 image.

Bookworm defaults the runtime tmpfs to noexec, so systemd-run cannot execute the staged copy of bg-update.sh on the 2025 Pi-OS fleet. Invoke via bash so noexec does not block; the script only needs to be readable. Bullseye unaffected.
@d4rken d4rken added the bug Something isn't working label May 21, 2026
@d4rken d4rken merged commit ebebbcb into dev May 21, 2026
1 check passed
@d4rken d4rken deleted the fix/run-update-bookworm-noexec branch May 26, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant