Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion helpers/run-update.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/bash
set -e

# /run is mounted noexec on bookworm by default (it was exec-allowed on
# bullseye), so executing /run/bg-update.sh directly fails with
# `Permission denied` on the 2025 Pi-OS fleet. Invoke via /bin/bash so
# the noexec mount option does not block — bash itself is the binary
# being exec'd, and bg-update.sh just needs to be readable.
rm -f /run/bg-update.sh
cp /airplanes/webconfig/helpers/bg-update.sh /run/bg-update.sh

systemd-run --on-active=3 /run/bg-update.sh
systemd-run --on-active=3 /bin/bash /run/bg-update.sh

sleep 1
exit