summaryrefslogtreecommitdiffstats
path: root/src/utils/fs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/fs.py')
-rw-r--r--src/utils/fs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/fs.py b/src/utils/fs.py
index 49da7ce..a025873 100644
--- a/src/utils/fs.py
+++ b/src/utils/fs.py
@@ -239,14 +239,14 @@ def _reduce_ntfsresize(partdev):
def _extend_resize2fs(partdev):
- cmd_resize2fs = shlex.split(f'resize2fs -f {partdev}')
- proc = subprocess.run(cmd_resize2fs)
+ cmd = shlex.split(f'resize2fs -f {partdev}')
+ proc = subprocess.run(cmd)
if proc.returncode != 0:
raise RuntimeError(f'Error growing ext4 filesystem at {partdev}')
def _extend_ntfsresize(partdev):
- cmd_ntfsresize = shlex.split(f'ntfsresize -f {partdev}')
- proc = subprocess.run(cmd_resize2fs, input='y')
+ cmd = shlex.split(f'ntfsresize -f {partdev}')
+ proc = subprocess.run(cmd, input='y')
if proc.returncode != 0:
raise RuntimeError(f'Error growing ntfs filesystem at {partdev}')