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>2021-02-07 15:27:12 +0100
committerAnton Hvornum <anton@hvornum.se>2021-02-07 15:27:12 +0100
commit15aa16c4256079de97d530df280def65e92fd30b (patch)
tree74b11ea35971f36a767b1030f15283b87955a3fb /archinstall
parenta88a41abfb519582933e2e4b04a279f0887b91d1 (diff)
Renamed fat32 to vfat to work more seamlessly with findmnt and other tools that report fat32 as vfat
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 2ac198cb..b416780c 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -163,11 +163,11 @@ class Partition():
if b'UUID' not in o:
raise DiskError(f'Could not format {self.path} with {filesystem} because: {o}')
self.filesystem = 'btrfs'
- elif filesystem == 'fat32':
+ elif filesystem == 'vfat':
o = b''.join(sys_command(f'/usr/bin/mkfs.vfat -F32 {self.path}'))
if (b'mkfs.fat' not in o and b'mkfs.vfat' not in o) or b'command not found' in o:
raise DiskError(f'Could not format {self.path} with {filesystem} because: {o}')
- self.filesystem = 'fat32'
+ self.filesystem = 'vfat'
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)}')
@@ -259,7 +259,7 @@ class Filesystem():
return self.raw_parted(string).exit_code
def use_entire_disk(self, prep_mode=None):
- self.add_partition('primary', start='1MiB', end='513MiB', format='fat32')
+ self.add_partition('primary', start='1MiB', end='513MiB', format='vfat')
self.set_name(0, 'EFI')
self.set(0, 'boot on')
self.set(0, 'esp on') # TODO: Redundant, as in GPT mode it's an alias for "boot on"? https://www.gnu.org/software/parted/manual/html_node/set.html