diff --git a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run index 76ab990609..257d0d9574 100755 --- a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run +++ b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run @@ -153,13 +153,9 @@ if [[ "$(id -u)" -eq 0 ]]; then if [[ "${FRIGATE_RUN_AS_ROOT:-false}" == "true" ]]; then rm -f /config/.permissions_version else - # Only record the sentinel when something is mounted under /media: a - # sweep blessed against the container-local dir created below would let - # a volume attached later skip the sweep forever - # Only bless the sentinel when persistent storage actually backs - # /media/frigate, i.e. a mount at that exact path or below it. A mount - # at the /media parent does not count: a dedicated /media/frigate volume - # added later would shadow the swept directory and be skipped forever. + # Only bless the sentinel when a mount backs /media/frigate itself or + # below it. A parent /media mount doesn't count: a dedicated + # /media/frigate volume added later would be shadowed and skipped. sentinel_args=(--sentinel /config/.permissions_version) if ! awk '$2 == "/media/frigate" || $2 ~ /^\/media\/frigate\//' /proc/mounts | grep -q .; then sentinel_args=()