|
|
|
@ -24,8 +24,8 @@ def umount(mount_point, exists=True):
|
|
|
|
|
mount_point))
|
|
|
|
|
|
|
|
|
|
def resize(img_file, size):
|
|
|
|
|
run(["sudo", "e2fsck", "-y", "-f", img_file], "^e2fsck \d+\.\d+\.\d (.+)\n$")
|
|
|
|
|
run(["sudo", "resize2fs", img_file, size], "^resize2fs \d+\.\d+\.\d (.+)\n$")
|
|
|
|
|
run(["sudo", "e2fsck", "-y", "-f", img_file], ignore="^e2fsck \d+\.\d+\.\d (.+)\n$")
|
|
|
|
|
run(["sudo", "resize2fs", img_file, size], ignore="^resize2fs \d+\.\d+\.\d (.+)\n$")
|
|
|
|
|
|
|
|
|
|
def get_image_dir():
|
|
|
|
|
# Read waydroid config to get image location
|
|
|
|
|