rockylinux-ostree-config/manifests/fallback-hostname.yaml
2022-09-29 20:37:37 -04:00

12 lines
377 B
YAML

postprocess:
# Set the fallback hostname to `localhost`. This can be removed
# once we are based on Fedora 37+.
# See https://github.com/coreos/fedora-coreos-tracker/issues/902
- |
#!/usr/bin/env bash
set -euxo pipefail
source /etc/os-release
if [ -z "${DEFAULT_HOSTNAME:-}" ]; then
echo 'DEFAULT_HOSTNAME=localhost' >> /usr/lib/os-release
fi