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
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 16d6f704..56c75767 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -184,7 +184,9 @@ class Partition():
return True if files > 0 else False
def safe_to_format(self):
- if self.target_mountpoint == '/boot' and self.has_content():
+ if self.allow_formatting is False:
+ return False
+ elif self.target_mountpoint == '/boot' and self.has_content():
return False
return True