In order to clarify if it’s a normal behaviour or a bug, I have repartitioned and checked the partition schema and sizes of the partitions.
The starting point is a computer with a 298GB HD with three primary partitions:
sda1: NTFS, System Reserved. Size: 1,38GB
sda2: NTFS, Boot. Size: 30,11GB with 3,74GB free space
sda3: NTFS. Size: 266,59GB with 266,43GB free space
After doing a “sysprep”, I captured the HD with fog and this are the content of the config files in the image directory:
d1.partitions
label: dos
label-id: 0x849ae652
device: /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 2921472, type=7, bootable
/dev/sda2 : start= 2923520, size= 63135760, type=7
/dev/sda3 : start= 66059280, size= 559078065, type=7
d1.minimum.partitions
label: dos
label-id: 0x849ae652
device: /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 60416, type=7, bootable
/dev/sda2 : start= 2923520, size= 52801536, type=7
/dev/sda3 : start= 66059280, size= 261120, type=7
When I try to restore this image into a computer with a smaller HD (80GB) that should be enough to fit the three partitions, it gives me the same error.
I made the deployment as a debug task and using the “ismajordebug=1” kernel argument. Here are the screen captures:
I hope this helps to clarify what is happening. Let me know if you need more tests.
Thank you very much