From 57d4b528377a54935194212b506f7e8c696b9325 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Tue, 15 Jun 2021 05:08:55 +0430 Subject: [PATCH] anbox: Bind mount host egl dirs --- scripts/run-container.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/run-container.sh b/scripts/run-container.sh index 051b429..728805a 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -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 +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 -- 2.47.3