Hey everyone,
I have a problem mounting /config in a addons. For testing i’ve created a very basic addons, that just checks if /config is mounted, but it fails.
Some Informations about my setup:
I am Using Home Assistant OS
Home Assistant Supervisor
Host-Betriebssystem | Home Assistant OS 15.2 |
---|---|
Update-Kanal | stable |
Supervisor-Version | supervisor-2025.06.2 |
Agent-Version | 1.7.2 |
Docker-Version | 28.0.4 |
Files are located under “/addons/test_config_access”
File: config.yaml
name: "Test Config Access"
version: "1.0"
slug: "test_config_access"
description: "Testet Zugriff auf /config"
arch:
- amd64
startup: application
boot: auto
init: false
host_network: false
map:
- homeassistant_config:rw
File: Dockerfile
FROM alpine:3.18
COPY run.sh /run.sh
RUN chmod +x /run.sh
CMD [ "/run.sh" ]
File: run.sh
#!/bin/sh
echo ">> Inhalt von /:"
ls /
echo ">> Inhalt von /config:"
ls /config || echo "Zugriff auf /config fehlgeschlagen"
sleep 300
The output is the following:
>> Inhalt von /:
bin
data
dev
etc
home
homeassistant
lib
media
mnt
opt
proc
root
run
run.sh
sbin
srv
sys
tmp
usr
var
>> Inhalt von /config:
Zugriff auf /config fehlgeschlagen
ls: /config: No such file or directory