Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-01-22 16:18:12 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-01-22 16:18:12 +0530
commit905f10e9d24e5d07afbd4e5293ed1124cba2edef (patch)
treefe1c8b1232969c3349fe9865cc8241dc20725230 /archinstall/lib
parent40c6aad0ed68ba8c3a5e98084f923d7840f4ed4e (diff)
fixed tabs and spaces problem
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 35ff5712..e9fa12a0 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -134,10 +134,10 @@ class Partition():
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 = 'ext4'
- elif filesystem == 'xfs':
- if (handle:= sys_command(f'/usr/bin/mkfs.xfs -f {self.path}')).exit_code != 0:
- raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
- self.filesystem = 'xfs'
+ elif filesystem == 'xfs':
+ if (handle:= sys_command(f'/usr/bin/mkfs.xfs -f {self.path}')).exit_code != 0:
+ raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
+ self.filesystem = 'xfs'
else:
raise DiskError(f'Fileformat {filesystem} is not yet implemented.')
return True