Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/filesystem.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-10-30 21:04:31 +0200
committerAnton Hvornum <anton@hvornum.se>2021-10-30 21:04:31 +0200
commit32aa91bdded15b4bd97fd6a0c0af918fbf3affc2 (patch)
tree3e85d454414a35d60d0bc000b71d909c9e783d17 /archinstall/lib/disk/filesystem.py
parent85c97b56301e2131ee0606bcce7dffb4456bb580 (diff)
Adding support for passing arguments to .format()
This should enable people to use custom option arguments in their config files when scripting installations or using the API.
Diffstat (limited to 'archinstall/lib/disk/filesystem.py')
-rw-r--r--archinstall/lib/disk/filesystem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py
index 0328cd83..d8cc85f9 100644
--- a/archinstall/lib/disk/filesystem.py
+++ b/archinstall/lib/disk/filesystem.py
@@ -117,9 +117,9 @@ class Filesystem:
continue
break
- unlocked_device.format(partition['filesystem']['format'])
+ unlocked_device.format(partition['filesystem']['format'], options=partition.get('options', []))
elif partition.get('format', False):
- partition['device_instance'].format(partition['filesystem']['format'])
+ partition['device_instance'].format(partition['filesystem']['format'], options=partition.get('options', []))
if partition.get('boot', False):
self.set(self.partuuid_to_index(partition['device_instance'].uuid), 'boot on')