Fix default partition type

There was a typo in I6b819a8071389e7e4eb4874ff7750bd192695ff2 that
modified this default partition type from "0x83" to just 83.  We are
now seeing failures relating to this as sfdisk checks for a "disk
manager" when it see Id 0x53 (== 83)

     Device Boot      Start         End      Blocks   Id  System
  /dev/vda1   *        2048    26664575    13331264   53  OnTrack DM6 Aux3

Restore to 0x83

Change-Id: Ib43038d2d740fbe01a21a13dd56367f7bc97f869
This commit is contained in:
Ian Wienand 2018-03-21 14:19:56 +11:00
parent ca8a89b1fb
commit f3f671cf10

View file

@ -56,7 +56,7 @@ class PartitionNode(NodeBase):
if self.partitioning.label == 'gpt':
self.ptype = str(config['type']) if 'type' in config else '8300'
elif self.partitioning.label == 'mbr':
self.ptype = int(config['type'], 16) if 'type' in config else 83
self.ptype = int(config['type'], 16) if 'type' in config else 0x83
def get_flags(self):
return self.flags