Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 042c3fb

Browse files
committed
Don't remount ro if the writable flag file exists
1 parent 871b7ea commit 042c3fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ubports-qa

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def mount():
1616
subprocess.call(["mount", "-o", "rw,remount", "/"])
1717

1818
def unmount():
19-
subprocess.call(["mount", "-o", "ro,remount", "/"])
19+
if not os.path.exists("/userdata/.writable_image"):
20+
subprocess.call(["mount", "-o", "ro,remount", "/"])
2021

2122
def apt_update():
2223
subprocess.call(["apt", "update"])

0 commit comments

Comments
 (0)