Fixes #88 - ext4 paritions incorrectly labeled
This commit is contained in:
parent
5927060133
commit
89bb819af2
|
|
@ -133,7 +133,7 @@ class Partition():
|
|||
elif filesystem == 'ext4':
|
||||
if (handle := sys_command(f'/usr/bin/mkfs.ext4 -F {self.path}')).exit_code != 0:
|
||||
raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
|
||||
self.filesystem = 'fat32'
|
||||
self.filesystem = 'ext4'
|
||||
else:
|
||||
raise DiskError(f'Fileformat {filesystem} is not yet implemented.')
|
||||
return True
|
||||
|
|
@ -293,4 +293,4 @@ def harddrive(size=None, model=None, fuzzy=False):
|
|||
if model and (collection[drive]['model'] is None or collection[drive]['model'].lower() != model.lower()):
|
||||
continue
|
||||
|
||||
return collection[drive]
|
||||
return collection[drive]
|
||||
|
|
|
|||
Loading…
Reference in New Issue