From 90fff773b267b8f2cbeb640389d1a125fab4e85c Mon Sep 17 00:00:00 2001 From: Rikka <1103670381@qq.com> Date: Fri, 20 Jan 2023 10:21:23 +0800 Subject: [PATCH] Use a correct way to read overlayfs config --- stuffs/general.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stuffs/general.py b/stuffs/general.py index ac0f54a..559f3e0 100644 --- a/stuffs/general.py +++ b/stuffs/general.py @@ -29,8 +29,11 @@ class General: @property def use_overlayfs(self): - return os.path.isdir("/var/lib/waydroid/overlay") - # return False + with open("/var/lib/waydroid/waydroid.cfg") as f: + cont=f.read() + if re.search("mount_overlays[ \t]*=[ \t]*True", cont): + return True + return False def download(self): loc_md5 = ""