diff --git a/src/Dockerfile b/src/Dockerfile index 0dc507c..670a0d0 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -9,7 +9,7 @@ ENV S6_OVERLAY_VERSION v3.1.1.2 COPY ./scripts/install.sh /usr/local/bin/install.sh ENV PIHOLE_INSTALL /etc/.pihole/automated\ install/basic-install.sh -ENTRYPOINT [ "/init" ] +ENTRYPOINT [ "/s6-init" ] COPY s6/debian-root / COPY s6/service /usr/local/bin/service diff --git a/src/scripts/install.sh b/src/scripts/install.sh index 51b581c..f88a4ff 100644 --- a/src/scripts/install.sh +++ b/src/scripts/install.sh @@ -39,6 +39,12 @@ detect_arch curl -L -s "https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" | tar Jxpf - -C / curl -L -s "https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz" | tar Jxpf - -C / +# IMPORTANT: ######################################################################### +# Move /init somewhere else to prevent issues with podman/RHEL # +# See: https://github.com/pi-hole/docker-pi-hole/issues/1176#issuecomment-1227587045 # +mv /init /s6-init # +###################################################################################### + # Preseed variables to assist with using --unattended install { echo "PIHOLE_INTERFACE=eth0"