Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 17:47:34 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 17:47:34 +0200
commit0c86440e2e63c5e66e64679e79ff675b9cc3f1dd (patch)
tree169ccb9aa391b8073601006dae576a620d394f05
parenta29bd759548c02c609aa43d9536475b1259a70f9 (diff)
Rolling back change to check parent blockdevice for safe formatting, it would wipe the boot partition if the boot partition for multiple drives was shared on the specific drive.
-rw-r--r--archinstall/lib/disk.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 4e70a4a5..f0651685 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -237,11 +237,6 @@ class Partition():
return True if files > 0 else False
def safe_to_format(self):
- if self.block_device and self.block_device.keep_partitions is False:
- # If we don't intend to keep any partitions on the parent block device
- # We're good to format.
- return True
-
if self.allow_formatting is False:
log(f"Partition {self} is not marked for formatting.", level=LOG_LEVELS.Debug)
return False