From 599c862ece2547751cc940db2f1cb6c40114e0d8 Mon Sep 17 00:00:00 2001 From: Timothée Ravier Date: Jul 17 2024 15:46:39 +0000 Subject: [PATCH 1/2] Bootable Containers: Remove ostree-grub2 Remove ostree-grub2 to avoid issues with composefs. We can not remove it yet from the classic ostree ones as we need at least two Fedora releases where bootupd is included and enabled by default as a transition period to make sure we don't break users. See: https://gitlab.com/fedora/ostree/sig/-/issues/35 See: https://github.com/fedora-silverblue/issue-tracker/issues/120 See: https://gitlab.com/fedora/ostree/sig/-/issues/1 --- diff --git a/common-ostree.yaml b/common-ostree.yaml index 05f641d..f5b52f7 100644 --- a/common-ostree.yaml +++ b/common-ostree.yaml @@ -1,5 +1,10 @@ # Manifest common to classic ostree varaints only and not Bootable Containers +# Packages only included in the legacy ostree variants and not in Bootable +# Containers +packages: + - ostree-grub2 + # We do not include any version of DNF in the classic ostree Atomic Desktops # See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora exclude-packages: diff --git a/common-packages.yaml b/common-packages.yaml index 7d8e07b..a0a7401 100644 --- a/common-packages.yaml +++ b/common-packages.yaml @@ -124,7 +124,6 @@ packages: - openssh-clients - openssh-server - orca - - ostree-grub2 - pam_afs_session - paps - passwdqc diff --git a/comps-sync-exclude-list.yml b/comps-sync-exclude-list.yml index ff44126..4092841 100644 --- a/comps-sync-exclude-list.yml +++ b/comps-sync-exclude-list.yml @@ -106,6 +106,9 @@ exclude_list: - cups-pk-helper # For now... - ghostscript + workstation-ostree-support: + # Now only included in the legacy ostree variants + - ostree-grub2 # Desktop environment specific exclude lists desktop_exclude_list: From 20d815873585502c920ad421dd70229967c8400b Mon Sep 17 00:00:00 2001 From: Timothée Ravier Date: Jul 17 2024 15:46:39 +0000 Subject: [PATCH 2/2] Bootable Containers: Enable composefs by default Only enabled for bootable containers as we need to remove ostree-grub2 first. See: https://fedoraproject.org/wiki/Changes/ComposefsAtomicCoreOSIoT --- diff --git a/common-bootable-containers-kinoite.yaml b/common-bootable-containers-kinoite.yaml index c053ccc..993d6b3 100644 --- a/common-bootable-containers-kinoite.yaml +++ b/common-bootable-containers-kinoite.yaml @@ -13,3 +13,4 @@ packages: include: # - dnf5-bootc.yaml - bootupd.yaml + - composefs.yaml diff --git a/common-bootable-containers.yaml b/common-bootable-containers.yaml index 5237abf..f27775f 100644 --- a/common-bootable-containers.yaml +++ b/common-bootable-containers.yaml @@ -2,3 +2,4 @@ include: - dnf5-bootc.yaml - bootupd.yaml + - composefs.yaml diff --git a/composefs.yaml b/composefs.yaml new file mode 100644 index 0000000..f2e3e0d --- /dev/null +++ b/composefs.yaml @@ -0,0 +1,11 @@ +# Set up composefs by default +# See: https://fedoraproject.org/wiki/Changes/ComposefsAtomicCoreOSIoT +postprocess: + - | + #!/usr/bin/env bash + set -xeuo pipefail + + cat >> /usr/lib/ostree/prepare-root.conf << 'EOF' + [composefs] + enabled = yes + EOF