Fix resize2fs

This commit is contained in:
jld3103 2021-10-10 21:21:46 +02:00
parent 58cf5b40b2
commit c70db11d64

View file

@ -26,7 +26,7 @@ def resize_fs(image_path: str, shrink: bool = False):
else: else:
logging.warning(msg) 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: if result.returncode != 0:
raise Exception(f'Failed to resize2fs {image_path}') raise Exception(f'Failed to resize2fs {image_path}')