mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-11-03 14:49:47 -09:00
We're now completely moved over to building via container [1], which means that we are no longer using the git submodule for manifest definitions for bootc but rather the manifests delivered with the build container. Thus we are always "deriving: true" and we can delete any config that was for the "deriving: false" condition. [1] https://github.com/coreos/fedora-coreos-tracker/issues/1969
47 lines
2 KiB
YAML
47 lines
2 KiB
YAML
# Here we override some key settings from bootc minimal-plus.
|
|
|
|
# Required by Ignition, and makes the system not compatible with Anaconda.
|
|
# Note this deviates from fedora-bootc and means `systemctl enable` doesn't
|
|
# work in a container build. We'll have to resolve that issue some other way in
|
|
# the future... For more details, see
|
|
# https://github.com/CentOS/centos-bootc/issues/167
|
|
# https://coreos.github.io/rpm-ostree/treefile/#experimental-options
|
|
# This is re-implemented below for the container-native flow. Nuke this once
|
|
# that's the only path we support.
|
|
machineid-compat: false
|
|
|
|
# This is the historical default and what FCOS currently ships. fedora-bootc
|
|
# uses the new `root` value, but migrating FCOS is not that simple...
|
|
# https://coreos.github.io/rpm-ostree/treefile/#experimental-options
|
|
# This is re-implemented below for the container-native flow. Nuke this once
|
|
# that's the only path we support.
|
|
opt-usrlocal: var
|
|
|
|
postprocess:
|
|
# Make `/opt and `/usr/local` symlinks.
|
|
# This is the historical default and what FCOS currently ships. fedora-bootc
|
|
# uses the new `root` value, but migrating FCOS is not that simple...
|
|
# https://coreos.github.io/rpm-ostree/treefile/#experimental-options
|
|
# We can nuke `opt-usrlocal: var` above once this is the only path we support.
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
if [ -f /run/.containerenv ]; then
|
|
rm -vrf /opt;
|
|
ln -vs var/opt /opt
|
|
rm -vrf /usr/local
|
|
ln -vs ../var/usrlocal /usr/local
|
|
fi
|
|
|
|
# Required by Ignition, and makes the system not compatible with Anaconda.
|
|
# Note this deviates from fedora-bootc and means `systemctl enable` doesn't
|
|
# work in a container build. We'll have to resolve that issue some other way in
|
|
# the future... For more details, see
|
|
# https://github.com/CentOS/centos-bootc/issues/167
|
|
# https://coreos.github.io/rpm-ostree/treefile/#experimental-options
|
|
# We can nuke `machineid-compat: false` above once we only support the
|
|
# container-native path.
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
rm -vf /etc/machine-id
|