test/data: use more variables in ostree-bootiso
Use variables for various often occuring contants, like the release, ref and isolabel. Additionally, use variables for the snapshot so it can be changed easily.
This commit is contained in:
parent
a9b3fbd92b
commit
cc39d5a8b4
1 changed files with 47 additions and 17 deletions
|
|
@ -1,5 +1,13 @@
|
|||
{
|
||||
"version": "2",
|
||||
"mpp-vars": {
|
||||
"arch": "x86_64",
|
||||
"version": 34,
|
||||
"relver": "f$version",
|
||||
"snapshot": "20210512",
|
||||
"ref": "fedora/$arch/osbuild",
|
||||
"isolabel": "Fedora-$version-X86_64"
|
||||
},
|
||||
"pipelines": [
|
||||
{
|
||||
"mpp-import-pipeline": {
|
||||
|
|
@ -24,12 +32,12 @@
|
|||
"type": "org.osbuild.files",
|
||||
"origin": "org.osbuild.source",
|
||||
"mpp-depsolve": {
|
||||
"architecture": "x86_64",
|
||||
"module-platform-id": "f34",
|
||||
"architecture": "$arch",
|
||||
"module-platform-id": "$relver",
|
||||
"repos": [
|
||||
{
|
||||
"id": "default",
|
||||
"baseurl": "https://rpmrepo.osbuild.org/v2/mirror/public/f34/f34-x86_64-fedora-20210512/"
|
||||
"baseurl": "https://rpmrepo.osbuild.org/v2/mirror/public/$relver/$relver-$arch-fedora-$snapshot/"
|
||||
}
|
||||
],
|
||||
"packages": [
|
||||
|
|
@ -209,8 +217,12 @@
|
|||
}
|
||||
},
|
||||
"options": {
|
||||
"ref": "fedora/x86_64/osbuild",
|
||||
"os_version": "34"
|
||||
"ref": {
|
||||
"mpp-format-string": "{ref}"
|
||||
},
|
||||
"os_version": {
|
||||
"mpp-format-string": "{version}"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -226,12 +238,12 @@
|
|||
"type": "org.osbuild.files",
|
||||
"origin": "org.osbuild.source",
|
||||
"mpp-depsolve": {
|
||||
"architecture": "x86_64",
|
||||
"module-platform-id": "f34",
|
||||
"architecture": "$arch",
|
||||
"module-platform-id": "$relver",
|
||||
"repos": [
|
||||
{
|
||||
"id": "default",
|
||||
"baseurl": "https://rpmrepo.osbuild.org/v2/mirror/public/f34/f34-x86_64-fedora-20210512/"
|
||||
"baseurl": "https://rpmrepo.osbuild.org/v2/mirror/public/$relver/$relver-$arch-fedora-$snapshot/"
|
||||
}
|
||||
],
|
||||
"packages": [
|
||||
|
|
@ -391,9 +403,13 @@
|
|||
{
|
||||
"type": "org.osbuild.buildstamp",
|
||||
"options": {
|
||||
"arch": "x86_64",
|
||||
"arch": {
|
||||
"mpp-format-string": "{arch}"
|
||||
},
|
||||
"product": "Fedora-IoT",
|
||||
"version": "34",
|
||||
"version": {
|
||||
"mpp-format-string": "{version}"
|
||||
},
|
||||
"variant": "osbuild",
|
||||
"final": true,
|
||||
"bugurl": "https://github.com/gicmo/ostree-osbuild-demo/issues"
|
||||
|
|
@ -438,7 +454,9 @@
|
|||
"origin": "org.osbuild.pipeline",
|
||||
"references": {
|
||||
"name:ostree-commit": {
|
||||
"ref": "fedora/x86_64/osbuild"
|
||||
"ref": {
|
||||
"mpp-format-string": "{ref}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -481,7 +499,9 @@
|
|||
"type": "org.osbuild.lorax-script",
|
||||
"options": {
|
||||
"path": "99-generic/runtime-postinstall.tmpl",
|
||||
"basearch": "x86_64"
|
||||
"basearch": {
|
||||
"mpp-format-string": "{arch}"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -491,7 +511,9 @@
|
|||
"ostree": {
|
||||
"osname": "fedora",
|
||||
"url": "file:///ostree/repo",
|
||||
"ref": "fedora/x86_64/osbuild",
|
||||
"ref": {
|
||||
"mpp-format-string": "{ref}"
|
||||
},
|
||||
"gpg": false
|
||||
}
|
||||
}
|
||||
|
|
@ -516,9 +538,13 @@
|
|||
"options": {
|
||||
"product": {
|
||||
"name": "Fedora-IoT",
|
||||
"version": "34"
|
||||
"version": {
|
||||
"mpp-format-string": "{version}"
|
||||
}
|
||||
},
|
||||
"isolabel": {
|
||||
"mpp-format-string": "{isolabel}"
|
||||
},
|
||||
"isolabel": "Fedora-34-X86_64",
|
||||
"kernel": {
|
||||
"mpp-format-string": "{rpms['ostree-tree']['kernel'].evra}"
|
||||
},
|
||||
|
|
@ -548,7 +574,9 @@
|
|||
{
|
||||
"type": "org.osbuild.discinfo",
|
||||
"options": {
|
||||
"basearch": "x86_64",
|
||||
"basearch": {
|
||||
"mpp-format-string": "{arch}"
|
||||
},
|
||||
"release": "202010217.n.0"
|
||||
}
|
||||
}
|
||||
|
|
@ -571,7 +599,9 @@
|
|||
},
|
||||
"options": {
|
||||
"filename": "fedora-ostree-boot.iso",
|
||||
"volid": "Fedora-34-X86_64",
|
||||
"volid": {
|
||||
"mpp-format-string": "{isolabel}"
|
||||
},
|
||||
"boot": {
|
||||
"image": "isolinux/isolinux.bin",
|
||||
"catalog": "isolinux/boot.cat"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue