From f3f671cf103c6642a91ea63a8a3eb54f2edcf893 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 21 Mar 2018 14:19:56 +1100 Subject: [PATCH] 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 --- diskimage_builder/block_device/level1/partition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimage_builder/block_device/level1/partition.py b/diskimage_builder/block_device/level1/partition.py index 183778607..54c769267 100644 --- a/diskimage_builder/block_device/level1/partition.py +++ b/diskimage_builder/block_device/level1/partition.py @@ -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