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
This commit is contained in:
Timothée Ravier 2024-06-06 16:24:14 +02:00
parent 599c862ece
commit 20d8158735
3 changed files with 13 additions and 0 deletions

View file

@ -13,3 +13,4 @@ packages:
include: include:
# - dnf5-bootc.yaml # - dnf5-bootc.yaml
- bootupd.yaml - bootupd.yaml
- composefs.yaml

View file

@ -2,3 +2,4 @@
include: include:
- dnf5-bootc.yaml - dnf5-bootc.yaml
- bootupd.yaml - bootupd.yaml
- composefs.yaml

11
composefs.yaml Normal file
View file

@ -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