Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=9d83a4cd5e72f4a468bd92ab96ba02fa620840c4
commit 9d83a4cd5e72f4a468bd92ab96ba02fa620840c4 Author: James Buren <[email protected]> Date: Mon Aug 27 17:05:48 2012 -0500 zap the disk's label before we write our new label. diff --git a/DosPartitionTable.cc b/DosPartitionTable.cc index 4497caf..6d4487e 100644 --- a/DosPartitionTable.cc +++ b/DosPartitionTable.cc @@ -115,6 +115,9 @@ bool DosPartitionTable::write(const string &path) if(_table.empty()) return false; + if(!zapLabel(path)) + return false; + cmd << "echo -n -e '"; while(i < _table.size()) diff --git a/GptPartitionTable.cc b/GptPartitionTable.cc index a5275b1..8c6a832 100644 --- a/GptPartitionTable.cc +++ b/GptPartitionTable.cc @@ -157,6 +157,9 @@ bool GptPartitionTable::write(const string &path) if(_table.empty()) return false; + if(!zapLabel(path)) + return false; + cmd << "sgdisk --clear --disk-guid='" << _uuid << "'"; while(i < _table.size()) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
