Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-01-14 11:17:38 +0100
committerAnton Hvornum <anton@hvornum.se>2022-01-14 11:19:34 +0100
commit8fae958571c88fa5722d50fcba333ebe19542dc2 (patch)
treeff250941458e8a969db61330568ddc5960c3f078 /archinstall
parentbb37dae16baf84e474e38415dd46daceaa273c87 (diff)
Unified filesystem names by using get_mount_fs_type() function before .format() is called
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk/partition.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py
index 56ead68c..3117a42c 100644
--- a/archinstall/lib/disk/partition.py
+++ b/archinstall/lib/disk/partition.py
@@ -281,6 +281,9 @@ class Partition:
if path is None:
path = self.path
+ # This converts from fat32 -> vfat to unify filesystem names
+ filesystem = get_mount_fs_type(filesystem)
+
# To avoid "unable to open /dev/x: No such file or directory"
start_wait = time.time()
while pathlib.Path(path).exists() is False and time.time() - start_wait < 10:
@@ -296,7 +299,7 @@ class Partition:
raise DiskError(f'Could not format {path} with {filesystem} because: {mkfs}')
self.filesystem = filesystem
- elif filesystem == 'fat32':
+ elif filesystem == 'vfat':
options = ['-F32'] + options
if (handle := SysCommand(f"/usr/bin/mkfs.vfat {' '.join(options)} {path}")).exit_code != 0:
@@ -331,7 +334,7 @@ class Partition:
raise DiskError(f"Could not format {path} with {filesystem} because: {handle.decode('UTF-8')}")
self.filesystem = filesystem
- elif filesystem == 'ntfs':
+ elif filesystem == 'ntfs3':
options = ['-f'] + options
if (handle := SysCommand(f"/usr/bin/mkfs.ntfs -Q {' '.join(options)} {path}")).exit_code != 0: