index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-01-14 11:17:38 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2022-01-14 11:19:34 +0100 |
commit | 8fae958571c88fa5722d50fcba333ebe19542dc2 (patch) | |
tree | ff250941458e8a969db61330568ddc5960c3f078 /archinstall | |
parent | bb37dae16baf84e474e38415dd46daceaa273c87 (diff) |
-rw-r--r-- | archinstall/lib/disk/partition.py | 7 |
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: |