From: Erfan Abdi Date: Mon, 3 May 2021 12:36:36 +0000 (+0430) Subject: anbox: Provide sw_sync node for HWC X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/56ca7bbac20c4158dbcdc1a5fde28732ca100f14?ds=sidebyside anbox: Provide sw_sync node for HWC --- diff --git a/lxc-configs/config b/lxc-configs/config index 118810f..9dea340 100644 --- a/lxc-configs/config +++ b/lxc-configs/config @@ -62,4 +62,8 @@ lxc.mount.entry = /vendor vendor_extra none bind,optional 0 0 # Recursive mount /run to provide necessary host sockets lxc.mount.entry = /run run none rbind,create=dir 0 0 +# Necessary sw_sync node for HWC +lxc.mount.entry = /dev/sw_sync dev/sw_sync none bind,create=file,optional 0 0 +lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none rbind,create=dir,optional 0 0 + lxc.hook.post-stop = /dev/null diff --git a/scripts/run-container.sh b/scripts/run-container.sh index b0cd87c..9607967 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -31,4 +31,8 @@ chmod 666 /dev/anbox-*binder # Wayland socket permissions chmod 777 -R /run/user/32011 +# Set sw_sync permissions +chmod 777 /dev/sw_sync +chmod 777 /sys/kernel/debug/sync/sw_sync + lxc-start -n anbox -F -- /init