From c70db11d64383c9e5d2442e1afdf3df69d126683 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 10 Oct 2021 21:21:46 +0200 Subject: [PATCH] Fix resize2fs --- image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.py b/image.py index 18c8f20..d6891bb 100644 --- a/image.py +++ b/image.py @@ -26,7 +26,7 @@ def resize_fs(image_path: str, shrink: bool = False): else: logging.warning(msg) - result = subprocess.run(['resize2fs'] + (['-MP'] if shrink else []) + [image_path]) + result = subprocess.run(['resize2fs'] + (['-M'] if shrink else []) + [image_path]) if result.returncode != 0: raise Exception(f'Failed to resize2fs {image_path}')