Extend snap packaging with further details
This commit is contained in:
parent
1c9ebae83d
commit
117111ce20
8 changed files with 198 additions and 44 deletions
16
scripts/setup-rootfs.sh
Executable file
16
scripts/setup-rootfs.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue