Skip to content

Commit 4a2c6f0

Browse files
authored
Bind-mount /run/supervisor into Supervisor container (#167)
Supervisor creates its API sockets (e.g. core.sock) in /run/os and bind-mounts the same host directory (/run/supervisor) into the Home Assistant Core container. Without the mount on the Supervisor side, the directory on the host is never populated and starting Core fails with "bind source path does not exist: /run/supervisor". This matches the production hassio-supervisor installer.
1 parent 78ed199 commit 4a2c6f0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/rootfs/usr/bin/supervisor_run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function run_supervisor() {
1616
--security-opt apparmor=unconfined \
1717
-v /run/docker.sock:/run/docker.sock:rw \
1818
-v /run/dbus:/run/dbus:ro \
19+
-v /run/supervisor:/run/os:rw \
1920
-v /run/udev:/run/udev:ro \
2021
-v /mnt/supervisor:/data:rw \
2122
-v /etc/machine-id:/etc/machine-id:ro \

supervisor/rootfs/usr/bin/supervisor_run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function run_supervisor() {
5151
--security-opt apparmor=unconfined \
5252
-v /run/docker.sock:/run/docker.sock:rw \
5353
-v /run/dbus:/run/dbus:ro \
54+
-v /run/supervisor:/run/os:rw \
5455
-v /run/udev:/run/udev:ro \
5556
-v "/mnt/supervisor":/data:rw \
5657
-v /etc/machine-id:/etc/machine-id:ro \

0 commit comments

Comments
 (0)