From: Erfan Abdi Date: Sat, 1 May 2021 14:19:09 +0000 (+0430) Subject: anbox: Cleanup scripts X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/3316e678f271e3133fd9733486e98871fef8f036?ds=sidebyside anbox: Cleanup scripts --- diff --git a/scripts/mount.sh b/scripts/mount.sh deleted file mode 100644 index 04662df..0000000 --- a/scripts/mount.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -mkdir -p /home/anbox/rootfs -cd /home/anbox -mount anbox_arm64_system.img rootfs -#mount -o remount,ro rootfs -mount -o ro anbox_arm64_vendor.img rootfs/vendor -mount -o bind default.prop rootfs/vendor/default.prop -#mount -o bind rootfs/system/lib64/vndk-sp-28 rootfs/system/lib64/vndk-sp-29 diff --git a/scripts/run-container.sh b/scripts/run-container.sh index 6bfe06a..b0cd87c 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -4,8 +4,8 @@ cd /home/anbox # just in case, stop Anbox 7 stop anbox-container || true -# restart cgroupfs-mount, else container may fail to start on some devices -restart cgroupfs-mount +# start cgroup-lite, else container may fail to start. +start cgroup-lite # stop sensorfw # NOTE: it is temporary solution, that workes only on halium devices. @@ -16,13 +16,19 @@ start lxc-net # umount rootfs if it was mounted umount -l rootfs || true -./mount.sh + +mkdir -p /home/anbox/rootfs +mkdir -p /home/anbox/data +mount anbox_arm64_system.img rootfs +mount -o remount,ro rootfs +mount anbox_arm64_vendor.img rootfs/vendor +mount -o remount,ro rootfs +mount -o bind anbox.prop rootfs/vendor/anbox.prop # Anbox binder permissions chmod 666 /dev/anbox-*binder # Wayland socket permissions -chmod 777 /run/user/32011 -chmod 777 /run/user/32011/wayland-1 +chmod 777 -R /run/user/32011 lxc-start -n anbox -F -- /init