mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-31 17:23:31 +02:00
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:
@@ -17,9 +17,5 @@ LABEL \
|
|||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
RUN chmod a+x /etc/services.d/aurral/run
|
RUN chmod a+x /etc/services.d/aurral/run && \
|
||||||
|
chmod a+x /usr/local/bin/docker-entrypoint.sh
|
||||||
# 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"]
|
|
||||||
|
|||||||
6
aurral/rootfs/usr/local/bin/docker-entrypoint.sh
Normal file
6
aurral/rootfs/usr/local/bin/docker-entrypoint.sh
Normal 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 "$@"
|
||||||
Reference in New Issue
Block a user