🏡 index : quine-global-labs/mirror-coreos-fedora-coreos-config.git

# Here we override some key settings from bootc minimal-plus.

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
  - |
    #!/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
  - |
    #!/usr/bin/env bash
    set -xeuo pipefail
    rm -vf /etc/machine-id