Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-08 16:18:56 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-08 16:18:56 +0100
commit0b3879ac58d2896ad01270f835fc2819817c6fc1 (patch)
treeae3efc3e53059d2bf74be4879f41e7c5ff47134a /archinstall/lib
parent979d162551d0796f4cbefd7a450149896e094caf (diff)
Removing part of the old formatting scheme. New implementation roughly 80% done.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index a0fcfddf..2be26585 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -173,11 +173,13 @@ class Partition():
else:
return f'Partition(path={self.path}, fs={self.filesystem}{mount_repr})'
- def format(self, filesystem, path=None, allow_formatting=None, log_formating=True):
+ def format(self, filesystem=None, path=None, allow_formatting=None, log_formating=True):
"""
Format can be given an overriding path, for instance /dev/null to test
the formating functionality and in essence the support for the given filesystem.
"""
+ if filesystem is None:
+ filesystem = self.filesystem
if path is None:
path = self.path
if allow_formatting is None: