Hi thanks again for this.
So I had a look to the script as you suggested but i can’t fully understand how to bind another mounting point.
As far as I understood this is where hass.io config is stored (code from install script)
echo “[Info] Install supervisor startup scripts”
curl -sL ${URL_BIN_HASSIO} > /usr/sbin/hassio-supervisor
and opening
/usr/sbin/hassio-supervisor
I see this
Load configs
CONFIG_FILE=/etc/hassio.json
SUPERVISOR=“$(jq --raw-output ‘.supervisor’ ${CONFIG_FILE})”
HOMEASSISTANT=“$(jq --raw-output ‘.homeassistant’ ${CONFIG_FILE})”
DATA=“$(jq --raw-output ‘.data // “/usr/share/hassio”’ ${CONFIG_FILE})”
and
/etc/hassio.json
shows
{
“supervisor”: “homeassistant/amd64-hassio-supervisor”,
“homeassistant”: “homeassistant/intel-nuc-homeassistant”,
“data”: “/usr/share/hassio”
}
which i understand i need to add another folder to be shared with hassio together with
“data”: “/usr/share/hassio”
now I absolutely have no idea how to proceed
Browsed and searched the forum but with no luck: I am quite surprised no one went through this before :-/
I am sure i need to pass another folder here:
Init supervisor
HASSIO_DATA=${DATA}
HASSIO_IMAGE_ID=$(docker inspect --format=‘{{.Id}}’ ${SUPERVISOR})
HASSIO_CONTAINER_ID=$(docker inspect --format=‘{{.Image}}’ hassio_supervisor || echo “”)
runSupervisor() {
docker rm --force hassio_supervisor || true
docker run --name hassio_supervisor
–privileged
$APPARMOR
–security-opt seccomp=unconfined
-v /var/run/docker.sock:/var/run/docker.sock
-v /var/run/dbus:/var/run/dbus
-v ${HASSIO_DATA}:/data
-e SUPERVISOR_SHARE=${HASSIO_DATA}
-e SUPERVISOR_NAME=hassio_supervisor
-e HOMEASSISTANT_REPOSITORY=${HOMEASSISTANT}
${SUPERVISOR}
}
Run supervisor
mkdir -p ${HASSIO_DATA}
([ “${HASSIO_IMAGE_ID}” = “${HASSIO_CONTAINER_ID}” ] && docker start --attach hassio_supervisor) || runSupervisor
but really unsure how