Extend snap packaging with further details

This commit is contained in:
Simon Fels 2016-08-22 21:58:09 +02:00
commit 117111ce20
8 changed files with 198 additions and 44 deletions

16
scripts/setup-rootfs.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# We need to put the rootfs somewhere where we can modify some
# parts of the content on first boot (namely file permissions).
# Other than that nothing should ever modify the content of the
# rootfs.
ROOTFS_PATH=$SNAP_COMMON/var/lib/anbox/rootfs
if [ -d $ROOTFS_PATH ] ; then
rm -rf $ROOTFS_PATH
fi
echo "Copying rootfs into $ROOTFS_PATH .."
mkdir -p $ROOTFS_PATH
tar xf $SNAP/anbox-android-rootfs.tar -C $ROOTFS_PATH/ --strip-components=1