Start bridge as part of the container manager
This commit is contained in:
parent
a8704556da
commit
a86a5847f8
2 changed files with 15 additions and 5 deletions
|
|
@ -29,4 +29,12 @@ chmod 666 /dev/ashmem
|
|||
# this path.
|
||||
mkdir -p $SNAP_COMMON/lxc
|
||||
|
||||
exec $SNAP/usr/sbin/aa-exec -p unconfined -- $SNAP/bin/anbox-wrapper.sh container-manager
|
||||
# We start the bridge here as long as a oneshot service unit is not
|
||||
# possible. See snapcraft.yaml for further details.
|
||||
$SNAP/bin/anbox-bridge.sh start
|
||||
|
||||
$SNAP/usr/sbin/aa-exec -p unconfined -- $SNAP/bin/anbox-wrapper.sh container-manager
|
||||
pid=$!
|
||||
waitpid $pid
|
||||
|
||||
$SNAP/bin/anbox-bridge.sh stop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue