change image size to fulfill Azure requirements
the hardcoded image size is now aligned to 1MB, because Azure requires it: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-generic once we make the size configurable, we should make sure the alignment stays the same fix test cases to reflect new image size
This commit is contained in:
parent
ea73597c5d
commit
4910cd18e3
15 changed files with 25 additions and 23 deletions
|
|
@ -181,7 +181,9 @@ func addF30QemuAssembler(p *pipeline.Pipeline, format string, filename string) {
|
|||
Filename: filename,
|
||||
PTUUID: "0x14fc63d2",
|
||||
RootFilesystemUUDI: id,
|
||||
Size: 3221225472,
|
||||
// Azure requires this size to be a multiple of 1MB. If you change this, make sure
|
||||
// the size still fulfills this requirement to prevent regressions.
|
||||
Size: 3222274048,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -201,6 +203,6 @@ func addF30RawFSAssembler(p *pipeline.Pipeline, filename string) {
|
|||
&pipeline.RawFSAssemblerOptions{
|
||||
Filename: filename,
|
||||
RootFilesystemUUDI: id,
|
||||
Size: 3221225472,
|
||||
Size: 3222274048,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@
|
|||
"filename": "image.ami",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -557,7 +557,7 @@
|
|||
"fstype": "ext4",
|
||||
"label": null,
|
||||
"partuuid": "14fc63d2-01",
|
||||
"size": 3220176896,
|
||||
"size": 3221225472,
|
||||
"start": 1048576,
|
||||
"type": "83",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@
|
|||
"filename": "image.ami",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
"filename": "disk.img",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -518,7 +518,7 @@
|
|||
"fstype": "ext4",
|
||||
"label": null,
|
||||
"partuuid": "14fc63d2-01",
|
||||
"size": 3220176896,
|
||||
"size": 3221225472,
|
||||
"start": 1048576,
|
||||
"type": "83",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@
|
|||
"filename": "disk.img",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
"options": {
|
||||
"filename": "filesystem.img",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@
|
|||
"options": {
|
||||
"filename": "filesystem.img",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@
|
|||
"filename": "image.qcow2",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -574,7 +574,7 @@
|
|||
"fstype": "ext4",
|
||||
"label": null,
|
||||
"partuuid": "14fc63d2-01",
|
||||
"size": 3220176896,
|
||||
"size": 3221225472,
|
||||
"start": 1048576,
|
||||
"type": "83",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@
|
|||
"filename": "image.qcow2",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@
|
|||
"filename": "image.qcow2",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -555,7 +555,7 @@
|
|||
"fstype": "ext4",
|
||||
"label": null,
|
||||
"partuuid": "14fc63d2-01",
|
||||
"size": 3220176896,
|
||||
"size": 3221225472,
|
||||
"start": 1048576,
|
||||
"type": "83",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@
|
|||
"filename": "image.qcow2",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,11 +106,11 @@
|
|||
"assembler": {
|
||||
"name": "org.osbuild.qemu",
|
||||
"options": {
|
||||
"format": "qcow2",
|
||||
"format": "vpc",
|
||||
"filename": "image.vhd",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -528,7 +528,7 @@
|
|||
"fstype": "ext4",
|
||||
"label": null,
|
||||
"partuuid": "14fc63d2-01",
|
||||
"size": 3220176896,
|
||||
"size": 3221225472,
|
||||
"start": 1048576,
|
||||
"type": "83",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@
|
|||
"filename": "image.vhd",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@
|
|||
"filename": "disk.vmdk",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -535,7 +535,7 @@
|
|||
"fstype": "ext4",
|
||||
"label": null,
|
||||
"partuuid": "14fc63d2-01",
|
||||
"size": 3220176896,
|
||||
"size": 3221225472,
|
||||
"start": 1048576,
|
||||
"type": "83",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@
|
|||
"filename": "disk.vmdk",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3221225472
|
||||
"size": 3222274048
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue