mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-13 12:58:16 +00:00
Bind mount /var/lib/connman to application containers.
This allows application containers to interface with host connman. Host /var/lib/connman is bind mounted to /host_var/lib/connman to avoid collisions with connman installations inside the container.
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
* Bind mount host /var/lib/connman to application /host_var/lib/connman [Aleksis]
|
||||||
* Add RESIN_SUPERVISOR_DELTA to special list so that app is not restarted when it changes [Pablo]
|
* Add RESIN_SUPERVISOR_DELTA to special list so that app is not restarted when it changes [Pablo]
|
||||||
|
|
||||||
# v1.6.1
|
# v1.6.1
|
||||||
|
@ -156,6 +156,7 @@ application.start = start = (app) ->
|
|||||||
'/lib/modules': {}
|
'/lib/modules': {}
|
||||||
'/lib/firmware': {}
|
'/lib/firmware': {}
|
||||||
'/run/dbus': {}
|
'/run/dbus': {}
|
||||||
|
'/host_var/lib/connman': {}
|
||||||
binds = [
|
binds = [
|
||||||
'/resin-data/' + app.appId + ':/data'
|
'/resin-data/' + app.appId + ':/data'
|
||||||
'/lib/modules:/lib/modules'
|
'/lib/modules:/lib/modules'
|
||||||
@ -163,6 +164,7 @@ application.start = start = (app) ->
|
|||||||
'/run/dbus:/run/dbus'
|
'/run/dbus:/run/dbus'
|
||||||
'/run/dbus:/host_run/dbus'
|
'/run/dbus:/host_run/dbus'
|
||||||
'/etc/resolv.conf:/etc/resolv.conf:rw'
|
'/etc/resolv.conf:/etc/resolv.conf:rw'
|
||||||
|
'/var/lib/connman:/host_var/lib/connman'
|
||||||
]
|
]
|
||||||
Promise.try ->
|
Promise.try ->
|
||||||
# Parse the env vars before trying to access them, that's because they have to be stringified for knex..
|
# Parse the env vars before trying to access them, that's because they have to be stringified for knex..
|
||||||
|
Reference in New Issue
Block a user