Merge branch 'configure-prepare-root' into 'main'

Enable readonly sysroot via config file

See merge request CentOS/cloud/sagano!39
This commit is contained in:
Colin Walters 2023-10-21 20:17:18 +00:00
commit 87ae66ada5
3 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,9 @@
include:
- ostree.yaml
# The bootc components. # The bootc components.
packages: packages:
- systemd - systemd
- ostree nss-altfiles
# For now this will be shipped in rpm-ostree; TODO fix this by shipping a separate epackage # For now this will be shipped in rpm-ostree; TODO fix this by shipping a separate epackage
# - bootc # - bootc
# Required by bootc install today, though we'll likely switch bootc to use a Rust crate instead of sgdisk # Required by bootc install today, though we'll likely switch bootc to use a Rust crate instead of sgdisk

12
tier-0/ostree.yaml Normal file
View File

@ -0,0 +1,12 @@
packages:
- ostree nss-altfiles
postprocess:
# Set up default root config
- |
#!/usr/bin/env bash
mkdir -p /usr/lib/ostree
cat > /usr/lib/ostree/prepare-root.conf << EOF
[sysroot]
readonly = true
EOF

1
tier-1/ostree.yaml Symbolic link
View File

@ -0,0 +1 @@
../tier-0/ostree.yaml