Pipelines encode which source content they need in the form of repository metadata checksums (or rpm checksums). In addition, they encode where they fetch that source content from in the form of URLs. This is overly specific and doesn't have to be in the pipeline's hash: the checksum is enough to specify an image. In practice, this precluded using alternative ways of getting at source packages, such as local mirrors, which could speed up development. Introduce a new osbuild API: sources. With it, a stage can query for a way to fetch source content based on checksums. The first such source is `org.osbuild.dnf`, which returns repository configuration for a metadata checksum. Note that the dnf stage continues to verify that the content it received matches the checksum it expects. Sources are implemented as programs, living in a `sources` directory. They are run on the host (i.e., uncontained) right now. Each source gets passed options, which are taken from a new command line argument to osbuild, and an array of checksums for which to return content. This API is only available to stages right now.
78 lines
1.7 KiB
JSON
78 lines
1.7 KiB
JSON
{
|
|
"stages": [
|
|
{
|
|
"name": "org.osbuild.dnf",
|
|
"options": {
|
|
"releasever": "30",
|
|
"basearch": "x86_64",
|
|
"install_weak_deps": true,
|
|
"repos": [
|
|
"sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
|
|
],
|
|
"packages": [
|
|
"kernel-core",
|
|
"@Fedora Cloud Server",
|
|
"chrony",
|
|
"polkit",
|
|
"systemd-udev",
|
|
"selinux-policy-targeted",
|
|
"grub2-pc",
|
|
"langpacks-en"
|
|
],
|
|
"exclude_packages": [
|
|
"dracut-config-rescue",
|
|
"etables",
|
|
"firewalld",
|
|
"gobject-introspection",
|
|
"plymouth"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "org.osbuild.locale",
|
|
"options": {
|
|
"language": "en_US"
|
|
}
|
|
},
|
|
{
|
|
"name": "org.osbuild.fstab",
|
|
"options": {
|
|
"filesystems": [
|
|
{
|
|
"uuid": "ea711a29-e460-4879-9d70-9da99ae021f9",
|
|
"vfs_type": "ext4",
|
|
"path": "/",
|
|
"freq": "1",
|
|
"passno": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "org.osbuild.grub2",
|
|
"options": {
|
|
"root_fs_uuid": "ea711a29-e460-4879-9d70-9da99ae021f9",
|
|
"kernel_opts": "ro biosdevname=0 net.ifnames=0"
|
|
}
|
|
},
|
|
{
|
|
"name": "org.osbuild.selinux",
|
|
"options": {
|
|
"file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
|
|
}
|
|
},
|
|
{
|
|
"name": "org.osbuild.fix-bls"
|
|
}
|
|
],
|
|
"assembler": {
|
|
"name": "org.osbuild.qemu",
|
|
"options": {
|
|
"format": "qcow2",
|
|
"filename": "base.qcow2",
|
|
"ptuuid": "0x14fc63d2",
|
|
"root_fs_uuid": "ea711a29-e460-4879-9d70-9da99ae021f9",
|
|
"size": 3221225472
|
|
}
|
|
}
|
|
}
|