Fixes #88 - ext4 paritions incorrectly labeled
This commit is contained in:
parent
5927060133
commit
89bb819af2
|
|
@ -133,7 +133,7 @@ class Partition():
|
||||||
elif filesystem == 'ext4':
|
elif filesystem == 'ext4':
|
||||||
if (handle := sys_command(f'/usr/bin/mkfs.ext4 -F {self.path}')).exit_code != 0:
|
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)}')
|
raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
|
||||||
self.filesystem = 'fat32'
|
self.filesystem = 'ext4'
|
||||||
else:
|
else:
|
||||||
raise DiskError(f'Fileformat {filesystem} is not yet implemented.')
|
raise DiskError(f'Fileformat {filesystem} is not yet implemented.')
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue