Compare commits

..

2 Commits

Author SHA1 Message Date
Alexandre
87313d3c95 Update entry validation for local mounts script
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-10-01 20:35:15 +02:00
alexbelgium
b9a8daeca5 claude_desktop: stop reusing the template layer of the first build
The builder takes the previous image as layer cache, and the Dockerfile's
module download RUN never changes, so every rebuild since 2026-08-20 reused
the old .templates/ scripts. The published 07308545.11 and .12 images are the
2026-08-20 image under new tags. #3076's `localdisks: NAS/folder` therefore
never reached claude_desktop, and the old script reported "folder does not
match any known physical device".

Add a BUILD_DATE marker to that RUN, as birdnet-go-dev does, so the template
download re-runs on every CI build.

Also name the whole entry in the "does not match" message, with a hint for
folder entries: it used to print only the part after the last slash.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 15:53:35 +02:00
4 changed files with 14 additions and 3 deletions

View File

@@ -69,7 +69,9 @@ if bashio::config.has_value 'localdisks'; then
echo "... $disk is a device by label"
devpath=/dev/disk/by-label
else
bashio::log.fatal "$disk does not match any known physical device, UUID, or label. "
hint=""
[[ "$entry" == [!/]*/?* && "$prefix" != dev && "$prefix" != disk ]] && hint="For a folder, the text before the first '/' must be the disk. "
bashio::log.fatal "$entry does not match any known physical device, UUID, or label. $hint"
continue
fi

View File

@@ -1,3 +1,6 @@
## 07308545.13 (01-10-2026)
- Fix: the image kept the `.templates/` scripts of its first build, because a rebuild reused the cached download layer. Template fixes never reached this add-on, so `localdisks: NAS/folder` still failed with `folder does not match any known physical device`. The layer is now refreshed on every build, which brings in the `disk/folder` support of `localdisks`.
## 07308545.12 (01-10-2026)
- Minor bugs fixed
## 2026.10.01 (01-10-2026)

View File

@@ -218,8 +218,14 @@ RUN if [ -f /etc/s6-overlay/s6-rc.d/svc-selkies/run ]; then \
# Modules
ARG MODULES="00-banner.sh 00-global_var.sh 01-custom_script.sh 00-local_mounts.sh 00-smb_mounts.sh 90-dns_set.sh"
# BUILD_DATE changes on every CI run, busting this layer's cache. The builder reuses
# the layers of the previous image, so without it a rebuild keeps the .templates/
# scripts downloaded by the first build and never picks up later template changes
ARG BUILD_DATE=unknown
# Automatic modules download
RUN curl -fsSL --retry 3 --retry-delay 2 \
RUN echo "Build date marker: ${BUILD_DATE}" && \
curl -fsSL --retry 3 --retry-delay 2 \
-o /ha_automodules.sh "${TEMPLATE_BASE_URL}/ha_automodules.sh" && \
chmod 744 /ha_automodules.sh && \
/ha_automodules.sh "$MODULES" && \

View File

@@ -175,5 +175,5 @@ schema:
slug: claude_desktop
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "07308545.12"
version: "07308545.13"
video: true