mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-06 14:16:25 +02:00
The upstream Maintainerr image declares /opt/data as a Docker VOLUME. Attempting to rm -rf /opt/data fails with "Resource busy" because mount points cannot be removed. Instead, we now: 1. Copy seed data from /opt/data to /config (persistent storage) 2. Clear contents inside /opt/data (rm -rf /opt/data/*) 3. Symlink each item in /config back into /opt/data This ensures the VOLUME directory stays intact while all data is redirected to persistent storage. Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/82a46feb-2e9c-4c40-b193-614167e6d5c3 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>