Use disk images instead of a rootfs tarball
This commit is contained in:
parent
0c4668d029
commit
6860338c4b
3 changed files with 39 additions and 39 deletions
|
|
@ -23,34 +23,6 @@ function prepare_filesystem() {
|
|||
chown system:system /dev/$f
|
||||
chmod 0666 /dev/$f
|
||||
done
|
||||
|
||||
if [ ! -e /.anbox_setup_done ] ; then
|
||||
echo "Fixing up all permissions ..."
|
||||
|
||||
# Fixup permissions of the android binaries in /system
|
||||
while read line
|
||||
do
|
||||
file=`echo $line | cut -d' ' -f 1`
|
||||
user=`echo $line | cut -d' ' -f 2`
|
||||
group=`echo $line | cut -d' ' -f 3`
|
||||
mode=`echo $line | cut -d' ' -f 4`
|
||||
# Avoid changing symlinks
|
||||
if [ ! -h /$file ] ; then
|
||||
chmod $mode /$file
|
||||
chown -h $user:$group /$file
|
||||
fi
|
||||
done < "/filesystem_config.txt"
|
||||
|
||||
# Additional ones not listed in the config generated from the build
|
||||
for f in qemu_pipe qemu_trace goldfish_pipe ; do
|
||||
[ ! -e /dev/$f ] && continue
|
||||
chown system:system /dev/$f
|
||||
chmod 0666 /dev/$f
|
||||
done
|
||||
|
||||
echo "Setup done!"
|
||||
echo $VERSION > /.anbox_setup_done
|
||||
fi
|
||||
}
|
||||
|
||||
prepare_filesystem &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue