debian-forge/test/data/manifests/fedora-uki.mpp.yaml
Ondřej Budai 64cc289bf7 manifests: remove vars from fedora-build-v2
Defining variables in the build pipeline is potentially dangerous, because
it can lead to the buildroot using a different package set than the other
pipelines.

Thus, this commit removes the variables from the build manifest. Since now on,
the variables must be defined before the build manifest is included.

Since the build manifest is no longer buildable on its own, let's remove it
from mpp.yaml to ipp.yaml. This is a convention set by the automotive team:
ipp manifests are not meant to be directly buildable, they are only useful
for embedding.
2023-08-08 12:41:17 +02:00

168 lines
6.5 KiB
YAML

version: '2'
mpp-vars:
arch: x86_64
release: 36
releasever: f$release
snapshot: '20220617'
updates: '20220801'
pipelines:
- mpp-import-pipeline:
path: fedora-build-v2.ipp.yaml
id: build
runner:
mpp-format-string: org.osbuild.fedora{release}
- name: tree
build: name:build
stages:
- type: org.osbuild.rpm
inputs:
packages:
type: org.osbuild.files
origin: org.osbuild.source
mpp-depsolve:
architecture: $arch
module-platform-id: $releasever
releasever: $releasever
repos:
- id: default
baseurl: https://rpmrepo.osbuild.org/v2/mirror/public/$releasever/$releasever-$arch-fedora-$snapshot/
- id: modular
baseurl: https://rpmrepo.osbuild.org/v2/mirror/public/$releasever/$releasever-$arch-fedora-modular-$snapshot/
- id: updates
baseurl: https://rpmrepo.osbuild.org/v2/mirror/public/$releasever/$releasever-$arch-updates-released-$updates/
- id: updates-modular
baseurl: https://rpmrepo.osbuild.org/v2/mirror/public/$releasever/$releasever-$arch-updates-released-modular-$updates/
packages:
- dnf
- rpm-ostree
- ostree
- pigz
- kernel
- kernel-modules
- kernel-modules-extra
- glibc-all-langpacks
- grub2-tools-efi
- efibootmgr
- shim-x64
- grub2-efi-x64-cdboot
- shim-ia32
- grub2-efi-ia32-cdboot
- biosdevname
- memtest86+
- syslinux
- grub2-tools
- grub2-tools-minimal
- grub2-tools-extra
- dracut
- anaconda-dracut
- dracut-network
- dracut-config-generic
- initscripts
- cryptsetup
- rpcbind
- kbd
- kbd-misc
- tar
- xz
- curl
- bzip2
- systemd-s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NE9tcR6OCRpuj/PZgUa39iifF/FTUfDgh4Q91xiQoLqfBxOJzravQHoK9VzrM\nNTOu6J6l4zeGzY/ocj6DpT+5fdUO/3HgGFNiNYPC6GVzeiA3AAVR0sCyGENuqqdg\nwUxV3BIht05M5Wcdvxg1U9x5I3yjkLQw+idvX4pevTiCh9/0u+4g80cT/21Cxsdx\n7+DVHaewXbF87QQIcOAing0S5QE67r2uPVxmWy/56TKUqDoyP8SNsV62lT2jutsj\nLevNxUky011g5w3bc61UeaeKrrurFdRs+RwBVkXmtqm/i6g0ZTWZyWGO6gJd+HWA\nqY1NYiq4+cMvNLatmA2sOoCsRNmE9q6jM/ESVgaH8hSp8GcLuzt9/r4PZZGl5CvU\neldOiD221u8rzuHmLs4dsgwJJ9pgLT0cUAsOpbMPI0JpGIPQ2SG6yK7LmO6HFOxb\nAkz7IGUt0gy1MzPTyBvnB+WgD1I+IQXXsJbhP5+d+d3mOnqsd6oDM/grKBzrhoUe\noNadc9uzjqKlOrmrdIR3Bz38SSiWlde5fu6xPqJdmGZRNjXtcyJlbSPVDIloxw==\n=QWRO\n-----END PGP PUBLIC KEY BLOCK-----\n"
exclude:
docs: true
disable_dracut: true
- type: org.osbuild.dracut
options:
kernel:
- mpp-format-string: '{rpms[''tree''][''kernel''].evra}'
add_modules:
- convertfs
- dmsquash-live
- livenet
- pollcdrom
- qemu
- qemu-net
- type: org.osbuild.locale
options:
language: en_US.UTF-8
- type: org.osbuild.users
options:
users:
root:
password: ''
- name: image
build: name:build
stages:
- type: org.osbuild.squashfs
inputs:
tree:
type: org.osbuild.tree
origin: org.osbuild.pipeline
references:
- name:tree
options:
filename: rootfs.img
compression:
method: lz4
- name: initrd
build: name:build
stages:
- type: org.osbuild.gunzip
inputs:
file:
type: org.osbuild.files
origin: org.osbuild.pipeline
references:
name:tree:
file:
mpp-format-string: /boot/initramfs-{rpms['tree']['kernel'].evra}.img
options:
path: initramfs.img
- type: org.osbuild.cpio.out
options:
filename: initramfs.img
append: true
inputs:
tree:
type: org.osbuild.tree
origin: org.osbuild.pipeline
references:
- name:image
- name: uki
build: name:build
stages:
- type: org.osbuild.uki
options:
filename: linux.efi
kernel:
opts:
- root=live:/rootfs.img
inputs:
kernel:
type: org.osbuild.files
origin: org.osbuild.pipeline
references:
name:tree:
file:
mpp-format-string: /boot/vmlinuz-{rpms['tree']['kernel'].evra}
initrd:
type: org.osbuild.files
origin: org.osbuild.pipeline
references:
name:initrd:
file:
mpp-format-string: /initramfs.img
osrel:
type: org.osbuild.files
origin: org.osbuild.pipeline
references:
name:tree:
file:
mpp-format-string: /etc/os-release