Add snap configure hook to allow enable debug mode

This commit is contained in:
Simon Fels 2018-05-30 08:58:03 +02:00
commit 83215524de
4 changed files with 17 additions and 1 deletions

View file

@ -43,6 +43,10 @@ start() {
$SNAP/sbin/apparmor_parser -r $SNAP/apparmor/anbox-container.aa
fi
if [ -e "$SNAP_COMMON"/.enable_debug ]; then
export ANBOX_LOG_LEVEL=debug
fi
exec $AA_EXEC $SNAP/bin/anbox-wrapper.sh container-manager \
--data-path=$DATA_PATH \
--android-image=$ANDROID_IMG \