From: Michael Tremer Date: Sat, 8 May 2021 11:17:45 +0000 (+0000) Subject: disk: Destroy the old partition table before writing a new one X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49df51b81ca5d323f7a4ff080311a404907d23a9;p=people%2Fms%2Fbricklayer.git disk: Destroy the old partition table before writing a new one Signed-off-by: Michael Tremer --- diff --git a/src/python/disk.py b/src/python/disk.py index b368044..714ff09 100644 --- a/src/python/disk.py +++ b/src/python/disk.py @@ -248,6 +248,10 @@ class Disk(object): """ Write the partition table to disk """ + # Destroy any existing partition table + self.device.clobber() + + # Write the new partition table self.parted.commit()