Revision 6d0788a9

b/image_creator/disk.py
381 381
                    'num': partition['part_num'],
382 382
                    'start': partition['part_start'] / sector_size,
383 383
                    'end': partition['part_end'] / sector_size,
384
                    'id': part_get_(partition['part_num']),
384
                    'id': part_get_id(partition['part_num']),
385 385
                    'bootable': part_get_bootable(partition['part_num'])
386 386
                })
387 387

  
......
390 390
            # Recreate the extended partition
391 391
            extended = [p for p in partitions if self._is_extended(p)][0]
392 392
            part_del(extended['part_num'])
393
            part_add('e', extended['part_start'], end)
393
            part_add('e', extended['part_start'] / sector_size, end)
394 394

  
395 395
            # Create all the logical partitions back
396 396
            for l in logical:

Also available in: Unified diff