We've been effectively using the basearch of the host, making the stage non-reproducible: if the same pipeline was run on machines with different architectures, it would produce different results. However, pipelines producing different outputs must be different. Thus, this patch includes the basearch in the pipeline. In principle, this allows cross-arch builds. dnf should be the only stage running binaries from the target tree. This is not yet tested.
24 lines
571 B
JSON
24 lines
571 B
JSON
{
|
|
"name": "base",
|
|
"stages": [
|
|
{
|
|
"name": "org.osbuild.dnf",
|
|
"options": {
|
|
"releasever": "30",
|
|
"basearch": "x86_64",
|
|
"repos": {
|
|
"fedora": {
|
|
"name": "Fedora",
|
|
"metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
|
|
"gpgkey": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch"
|
|
}
|
|
},
|
|
"packages": [
|
|
"@Core",
|
|
"selinux-policy-targeted",
|
|
"grub2-pc"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|