Use conditional includes to separate bootable containers
Refactor how we differentiate bootable containers variants from classic ostree ones using conditional includes. See: https://coreos.github.io/rpm-ostree/treefile/
This commit is contained in:
parent
9e3a473f73
commit
f9184799de
25 changed files with 90 additions and 42 deletions
|
@ -1,6 +1,9 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "base-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/base
|
ref: fedora/rawhide/${basearch}/base
|
||||||
rojig:
|
rojig:
|
||||||
|
|
4
bootc.yaml
Normal file
4
bootc.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Add bootc for Bootable Container images
|
||||||
|
# See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora
|
||||||
|
packages:
|
||||||
|
- bootc
|
|
@ -1,3 +1,6 @@
|
||||||
|
variables:
|
||||||
|
variant: "budgie-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- budgie-atomic-packages.yaml
|
- budgie-atomic-packages.yaml
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: false
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- budgie-atomic-common.yaml
|
- budgie-atomic-common.yaml
|
||||||
- common-ostree.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- budgie-atomic-common.yaml
|
- budgie-atomic-common.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "cinnamon-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- cinnamon-atomic-packages.yaml
|
- cinnamon-atomic-packages.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/cinnamon
|
ref: fedora/rawhide/${basearch}/cinnamon
|
||||||
rojig:
|
rojig:
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
# Manifests includes that are common only to Bootable Containers
|
|
||||||
|
|
||||||
# Temporary Kinoite only manifest
|
|
||||||
# See https://pagure.io/fedora-kde/SIG/issue/519
|
|
||||||
|
|
||||||
# Add DNF5 and bootc for Bootable Container images
|
|
||||||
# See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora
|
|
||||||
packages:
|
|
||||||
# - dnf5
|
|
||||||
# - dnf5-plugins
|
|
||||||
- bootc
|
|
||||||
|
|
||||||
include:
|
|
||||||
# - dnf5-bootc.yaml
|
|
||||||
- bootupd.yaml
|
|
||||||
- composefs.yaml
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Manifests includes that are common only to Bootable Containers
|
|
||||||
include:
|
|
||||||
- dnf5-bootc.yaml
|
|
||||||
- bootupd.yaml
|
|
||||||
- composefs.yaml
|
|
21
common.yaml
21
common.yaml
|
@ -10,12 +10,31 @@ include:
|
||||||
# Packages common to all variants
|
# Packages common to all variants
|
||||||
- common-packages.yaml
|
- common-packages.yaml
|
||||||
# See: https://gitlab.com/fedora/ostree/sig/-/issues/1
|
# See: https://gitlab.com/fedora/ostree/sig/-/issues/1
|
||||||
# - bootupd.yaml
|
- bootupd.yaml
|
||||||
# Dracut configuration for the initramfs
|
# Dracut configuration for the initramfs
|
||||||
- initramfs.yaml
|
- initramfs.yaml
|
||||||
# Read only sysroot
|
# Read only sysroot
|
||||||
- sysroot-ro.yaml
|
- sysroot-ro.yaml
|
||||||
|
|
||||||
|
conditional-include:
|
||||||
|
# Manifests included only for classic ostree variants
|
||||||
|
- if: bootable_container == false
|
||||||
|
include:
|
||||||
|
- ostree-classic.yaml
|
||||||
|
# Manifests included only for the Bootable Container variants
|
||||||
|
- if: bootable_container == true
|
||||||
|
include:
|
||||||
|
- composefs.yaml
|
||||||
|
- bootc.yaml
|
||||||
|
# Only include dnf5 for non KDE Bootable Containers until
|
||||||
|
# https://pagure.io/fedora-kde/SIG/issue/519
|
||||||
|
- if:
|
||||||
|
- bootable_container == true
|
||||||
|
- variant != "kinoite"
|
||||||
|
- variant != "kinoite-mobile"
|
||||||
|
include:
|
||||||
|
- dnf5.yaml
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
# Ensure that we have a kernel. Kernel packages are not in any comps group
|
# Ensure that we have a kernel. Kernel packages are not in any comps group
|
||||||
- kernel
|
- kernel
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "deepin-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- deepin-atomic-packages.yaml
|
- deepin-atomic-packages.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/deepin
|
ref: fedora/rawhide/${basearch}/deepin
|
||||||
rojig:
|
rojig:
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# Add DNF5 and bootc for Bootable Container images
|
# Add DNF5 for Bootable Container images
|
||||||
# See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora
|
# See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora
|
||||||
packages:
|
packages:
|
||||||
- dnf5
|
- dnf5
|
||||||
- dnf5-plugins
|
- dnf5-plugins
|
||||||
- bootc
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
variables:
|
||||||
|
variant: "kinoite"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- kinoite-packages.yaml
|
- kinoite-packages.yaml
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "kinoite-mobile"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- kinoite-mobile-packages.yaml
|
- kinoite-mobile-packages.yaml
|
||||||
- common-bootable-containers-kinoite.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/kinoite-mobile
|
ref: fedora/rawhide/${basearch}/kinoite-mobile
|
||||||
rojig:
|
rojig:
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: false
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- kinoite-common.yaml
|
- kinoite-common.yaml
|
||||||
- common-ostree.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- kinoite-common.yaml
|
- kinoite-common.yaml
|
||||||
- common-bootable-containers-kinoite.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "lxqt-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- lxqt-atomic-packages.yaml
|
- lxqt-atomic-packages.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/lazurite
|
ref: fedora/rawhide/${basearch}/lazurite
|
||||||
rojig:
|
rojig:
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "mate-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- mate-atomic-packages.yaml
|
- mate-atomic-packages.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/mate
|
ref: fedora/rawhide/${basearch}/mate
|
||||||
rojig:
|
rojig:
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
# Manifest common to classic ostree varaints only and not Bootable Containers
|
# Manifest for classic ostree varaints only and not Bootable Containers
|
||||||
include:
|
|
||||||
- bootupd.yaml
|
|
||||||
|
|
||||||
# Packages only included in the legacy ostree variants and not in Bootable
|
# Packages only included in the legacy ostree variants and not in Bootable
|
||||||
# Containers
|
# Containers
|
|
@ -1,3 +1,6 @@
|
||||||
|
variables:
|
||||||
|
variant: "silverblue"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- silverblue-packages.yaml
|
- silverblue-packages.yaml
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: false
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- silverblue-common.yaml
|
- silverblue-common.yaml
|
||||||
- common-ostree.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- silverblue-common.yaml
|
- silverblue-common.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
variables:
|
||||||
|
variant: "sway-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- sway-atomic-packages.yaml
|
- sway-atomic-packages.yaml
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: false
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- sway-atomic-common.yaml
|
- sway-atomic-common.yaml
|
||||||
- common-ostree.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- sway-atomic-common.yaml
|
- sway-atomic-common.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
# Kept in the leaf manifest as they are overwritten by Pungi in composes
|
||||||
repos:
|
repos:
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
variables:
|
||||||
|
bootable_container: true
|
||||||
|
variant: "xfce-atomic"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- common.yaml
|
- common.yaml
|
||||||
- xfce-atomic-packages.yaml
|
- xfce-atomic-packages.yaml
|
||||||
- common-bootable-containers.yaml
|
|
||||||
|
|
||||||
ref: fedora/rawhide/${basearch}/vauxite
|
ref: fedora/rawhide/${basearch}/vauxite
|
||||||
rojig:
|
rojig:
|
||||||
|
|
Loading…
Reference in a new issue