Fix resize error log
This commit is contained in:
+2
-8
@@ -24,14 +24,8 @@ def umount(mount_point, exists=True):
|
||||
mount_point))
|
||||
|
||||
def resize(img_file, size):
|
||||
try:
|
||||
run(["e2fsck", "-y", "-f", img_file])
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
try:
|
||||
run(["resize2fs", img_file, size])
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
run(["sudo", "e2fsck", "-y", "-f", img_file], "^e2fsck \d+\.\d+\.\d (.+)\n$")
|
||||
run(["sudo", "resize2fs", img_file, size], "^resize2fs \d+\.\d+\.\d (.+)\n$")
|
||||
|
||||
def get_image_dir():
|
||||
# Read waydroid config to get image location
|
||||
|
||||
Reference in New Issue
Block a user