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.

This commit is contained in:
Anton Hvornum 2021-03-29 17:47:34 +02:00
parent a29bd75954
commit 0c86440e2e
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 0 additions and 5 deletions

View File

@ -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