mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-08 22:22:29 +02:00
fix(webtop_kde): tolerate init-video/init-selkies-config failures to stop crash loop
The Selkies desktop init oneshots do best-effort device/permission setup (mknod /dev/input/*, chmod /tmp/selkies*, /dev/dri perms) that is only partially permitted in the HA add-on sandbox. A non-zero exit from a oneshot crash-loops the container along with svc-selkies. Apply the same tolerant-oneshot fix already used in claude_desktop's 20-folders.sh. Closes #2918 Co-authored-by: Alexandre <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
|
|
||||||
|
## 4.16-r0-ls93.1 (2026-07-28)
|
||||||
|
- Fix crash loop on start: make the `init-video` and `init-selkies-config` oneshots
|
||||||
|
tolerant of their best-effort device/permission setup failing in the HA add-on
|
||||||
|
sandbox, so a non-zero exit no longer crash-loops the container and `svc-selkies`
|
||||||
|
(closes #2918)
|
||||||
|
|
||||||
## 4.16-r0-ls93 (2026-07-21)
|
## 4.16-r0-ls93 (2026-07-21)
|
||||||
- Update to latest version from linuxserver/docker-webtop (changelog : https://github.com/linuxserver/docker-webtop/releases)
|
- Update to latest version from linuxserver/docker-webtop (changelog : https://github.com/linuxserver/docker-webtop/releases)
|
||||||
|
|
||||||
|
|||||||
@@ -81,3 +81,16 @@ ln -sf /config/.cache /.cache
|
|||||||
bashio::log.info "Setting ownership to $PUID:$PGID"
|
bashio::log.info "Setting ownership to $PUID:$PGID"
|
||||||
chown -R "$PUID":"$PGID" "$LOCATION"
|
chown -R "$PUID":"$PGID" "$LOCATION"
|
||||||
chmod -R 700 "$LOCATION"
|
chmod -R 700 "$LOCATION"
|
||||||
|
|
||||||
|
# The Selkies desktop init oneshots do best-effort device/permission setup (mknod
|
||||||
|
# /dev/input/*, chmod /tmp/selkies*, /dev/dri perms) that is only partially permitted in the
|
||||||
|
# HA add-on sandbox. A non-zero exit from a oneshot fails add-on bringup and crash-loops the
|
||||||
|
# container, so make these two tolerant and always report success. Longruns (svc-*) are left
|
||||||
|
# untouched so s6 keeps supervising them with their real exit codes.
|
||||||
|
for oneshot in init-video init-selkies-config; do
|
||||||
|
run="/etc/s6-overlay/s6-rc.d/$oneshot/run"
|
||||||
|
if [ -f "$run" ] && ! grep -q '^set +e$' "$run"; then
|
||||||
|
sed -i "1a set +e" "$run"
|
||||||
|
printf '\nexit 0\n' >> "$run"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user