distro/rhel90: compress azure-rhui images

Those images are forced to be 64GiB in size but mostly consist of zeros.
This makes them hard to handle, e.g. uploading to brew takes a forever.
The vhdPipelines is converted to a function returning the pipelinesFunc
and it has a single argument `compress` that will add the compression
pipeline bits if `true`. Will return exactly the old pipeline in case
of `false`.
This commit is contained in:
Christian Kellner 2022-05-25 13:19:02 +02:00
parent 5c90abdd0a
commit 921c67cf1b
5 changed files with 90 additions and 29 deletions

View file

@ -3320,6 +3320,29 @@
}
}
]
},
{
"name": "archive",
"build": "name:build",
"stages": [
{
"type": "org.osbuild.xz",
"inputs": {
"file": {
"type": "org.osbuild.files",
"origin": "org.osbuild.pipeline",
"references": {
"name:vpc": {
"file": "disk.vhd"
}
}
}
},
"options": {
"filename": "disk.vhd.xz"
}
}
]
}
],
"sources": {

View file

@ -7506,6 +7506,29 @@
}
}
]
},
{
"name": "archive",
"build": "name:build",
"stages": [
{
"type": "org.osbuild.xz",
"inputs": {
"file": {
"type": "org.osbuild.files",
"origin": "org.osbuild.pipeline",
"references": {
"name:vpc": {
"file": "disk.vhd"
}
}
}
},
"options": {
"filename": "disk.vhd.xz"
}
}
]
}
],
"sources": {