fix: replace upstream entrypoint with no-op to prevent chown on host-mounted paths

docker-entrypoint.sh runs chown -R on /app/backend/data which fails when
that path is a symlink to a host-mounted HA volume. Replace it with a
passthrough script that just exec's its arguments, letting the s6 run
script handle all setup.
This commit is contained in:
petruknw
2026-05-20 23:10:28 +10:00
parent d7fc0eb331
commit 15749a4d2f
2 changed files with 8 additions and 6 deletions

View File

@@ -17,9 +17,5 @@ LABEL \
COPY rootfs /
RUN chmod a+x /etc/services.d/aurral/run
# Override the upstream docker-entrypoint.sh which tries to chown host-mounted
# paths and fails with "Operation not permitted" in the HA supervisor environment.
# s6-overlay's /init takes over process supervision instead.
ENTRYPOINT ["/init"]
RUN chmod a+x /etc/services.d/aurral/run && \
chmod a+x /usr/local/bin/docker-entrypoint.sh

View File

@@ -0,0 +1,6 @@
#!/bin/sh
# Replacement for the upstream docker-entrypoint.sh.
# The upstream version runs chown -R on /app/backend/data which fails when
# that path is a symlink to a host-mounted HA volume (Operation not permitted).
# All setup (symlinks, directory creation) is handled by the s6 run script.
exec "$@"