Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-01-26 00:02:13 +0100
committerGitHub <noreply@github.com>2021-01-26 00:02:13 +0100
commit2885da3f71288c507eb1a4f8539139c65d3b70a5 (patch)
tree2873e71a7d2e2a86d454b53b011ac7c646fd465f /archinstall/lib/disk.py
parent6cac9b86106ae6153946da866296beefb58420a3 (diff)
parenteb7f44d03dc3635c4cf4a0c719977c824b5e7a87 (diff)
Merge pull request #90 from Reiddragon/master
Added basic F2FS support
Diffstat (limited to 'archinstall/lib/disk.py')
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index c14cb48c..caf5c4e1 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -138,6 +138,10 @@ class Partition():
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 == 'f2fs':
+ if (handle:= sys_command(f'/usr/bin/mkfs.f2fs -f {self.path}')).exit_code != 0:
+ raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
+ self.filesystem = 'f2fs'
else:
raise DiskError(f'Fileformat {filesystem} is not yet implemented.')
return True