From bddbea942ef01b02bc197ebc32d6e8a8591137bd Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 19 Apr 2024 12:19:36 +0200 Subject: utils: fs: skip shrink/extend operation for fat fat does not support this operation, skip it --- src/utils/fs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/fs.py b/src/utils/fs.py index 55c24cf..a9964a3 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -104,6 +104,8 @@ def ogReduceFs(disk, part): ret = _reduce_resize2fs(partdev) elif fstype == 'ntfs': ret = _reduce_ntfsresize(partdev) + elif fstype == 'vfat': + ret = 0 else: ret = -1 logging.error(f'Unable to shrink filesystem at {partdev}. ' @@ -127,6 +129,8 @@ def ogExtendFs(disk, part): _extend_resize2fs(partdev) elif fstype == 'ntfs': _extend_ntfsresize(partdev) + elif fstype == 'vfat': + pass else: logging.error(f'Unable to grow filesystem at {partdev}. ' f'Unsupported filesystem "{fstype}".') -- cgit v1.2.3-18-g5258