Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py4
-rw-r--r--archinstall/lib/installer.py2
2 files changed, 6 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
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index c4cdf857..21c1b5d9 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -259,6 +259,8 @@ class Installer():
self.base_packages.append('btrfs-progs')
if self.partition.filesystem == 'xfs':
self.base_packages.append('xfsprogs')
+ if self.partition.filesystem == 'f2fs':
+ self.base_packages.append('f2fs-tools')
self.pacstrap(self.base_packages)
self.helper_flags['base-strapped'] = True
#self.genfstab()