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:
parent
a29bd75954
commit
0c86440e2e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue