]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
anbox: Bind mount host egl dirs
authorErfan Abdi <erfangplus@gmail.com>
Tue, 15 Jun 2021 00:38:55 +0000 (05:08 +0430)
committerErfan Abdi <erfangplus@gmail.com>
Wed, 16 Jun 2021 20:50:09 +0000 (01:20 +0430)
scripts/run-container.sh

index 051b4295d6292bdd8d5c97c2e72acb2015b48b96..728805ad19d3cc0f5247350ae82aeb86682fa33e 100644 (file)
@@ -37,6 +37,12 @@ mount -o remount,ro rootfs
 mount anbox_*_vendor.img rootfs/vendor
 mount -o remount,ro rootfs/vendor
 mount -o bind anbox.prop rootfs/vendor/anbox.prop
 mount anbox_*_vendor.img rootfs/vendor
 mount -o remount,ro rootfs/vendor
 mount -o bind anbox.prop rootfs/vendor/anbox.prop
+if [ -d /vendor/lib/egl ]; then
+    mount -o bind /vendor/lib/egl rootfs/vendor/lib/egl
+fi
+if [ -d /vendor/lib64/egl ]; then
+    mount -o bind /vendor/lib64/egl rootfs/vendor/lib64/egl
+fi
 
 if mountpoint -q -- /odm; then
     mount -o bind /odm rootfs/odm_extra
 
 if mountpoint -q -- /odm; then
     mount -o bind /odm rootfs/odm_extra