mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 10:05:59 +02:00
fix: symlink contents inside /opt/data instead of replacing Docker VOLUME
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>
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
## 3.2.0-3 (2026-03-31)
|
||||
- Fix addon never starts: symlink contents inside /opt/data instead of replacing the Docker VOLUME directory
|
||||
|
||||
## 3.2.0-2 (2026-03-31)
|
||||
- Fix configuration lost after container restart by symlinking /opt/data to persistent /config directory
|
||||
|
||||
|
||||
Reference in New Issue
Block a user