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:
Martin Sehnoutka 2019-11-21 13:30:53 +01:00 committed by Tom Gundersen
parent ea73597c5d
commit 4910cd18e3
15 changed files with 25 additions and 23 deletions

View file

@ -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,
})
}