mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-26 02:18:21 -04:00
Fix resize2fs
This commit is contained in:
parent
58cf5b40b2
commit
c70db11d64
1 changed files with 1 additions and 1 deletions
2
image.py
2
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}')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue