summaryrefslogtreecommitdiffstats
path: root/src/utils/fs.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2023-06-13 09:00:08 +0200
committerJose M. Guisado <jguisado@soleta.eu>2023-06-13 09:06:13 +0200
commit666d2fb50f89d51642ac9e74c18f9ccc4ef28985 (patch)
tree8a1a13cea235f7b5ec7a01c1d0275c876477de05 /src/utils/fs.py
parentfa51f2be8f6db224d82c8e50e2ad43b0f4abd722 (diff)
fs: fix typo inside _extend_resize2fs
_extend_ntfsresize contains an incorrect variable name inside subprocess.run referring the resize command value. Simplify this variable name inside each specific _extend_* function: s/cmd_resize2fs/cmd s/cmd_ntfsresize/cmd
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}')