mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-25 06:13:32 +02:00
fix: override upstream entrypoint to prevent chown failure on host-mounted paths
The upstream docker-entrypoint.sh runs chown -R on /app/backend/data before the s6 run script can replace it with a symlink. When the symlink target is a host-mounted HA path (/share, /data, etc.), the chown fails with "Operation not permitted". Overriding ENTRYPOINT with /init hands control directly to s6-overlay, which then runs the run script that creates the symlinks before node starts.
This commit is contained in:
@@ -18,3 +18,8 @@ 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"]
|
||||
|
||||
Reference in New Issue
Block a user