rockylinux-ostree-config/manifests/fallback-hostname.yaml

12 lines
377 B
YAML
Raw Normal View History

2022-09-30 00:37:37 +00:00
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