Use a correct way to read overlayfs config
This commit is contained in:
+5
-2
@@ -29,8 +29,11 @@ class General:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def use_overlayfs(self):
|
def use_overlayfs(self):
|
||||||
return os.path.isdir("/var/lib/waydroid/overlay")
|
with open("/var/lib/waydroid/waydroid.cfg") as f:
|
||||||
# return False
|
cont=f.read()
|
||||||
|
if re.search("mount_overlays[ \t]*=[ \t]*True", cont):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def download(self):
|
def download(self):
|
||||||
loc_md5 = ""
|
loc_md5 = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user