Enable readonly sysroot via config file

This is the more proper way to do it.
This commit is contained in:
Colin Walters committed 2023-10-21 16:03:18 -04:00
1 parent 2b5646ee05
commit 2ea1dcabc2
3 files changed
+16 -1

No files matched your search

+3 -1
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
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
View File
@@ -0,0 +1 @@
../tier-0/ostree.yaml