Don't set the fallback hostname to "fedora" on non-Fedora OSes

From a branding perspective, having the fallback hostname be "fedora" for an OS that is not Fedora Linux is incorrect.  Go back to using "localhost" in those cases.
This commit is contained in:
Josh Boyer 2021-03-01 14:10:02 +00:00
parent 4d3f7b560d
commit 13d1341b10

View File

@ -21,7 +21,7 @@
Name: systemd Name: systemd
Url: https://www.freedesktop.org/wiki/Software/systemd Url: https://www.freedesktop.org/wiki/Software/systemd
Version: 248~rc2 Version: 248~rc2
Release: 1%{?dist} Release: 2%{?dist}
# For a breakdown of the licensing, see README # For a breakdown of the licensing, see README
License: LGPLv2+ and MIT and GPLv2+ License: LGPLv2+ and MIT and GPLv2+
Summary: System and Service Manager Summary: System and Service Manager
@ -454,7 +454,11 @@ CONFIGURE_OPTS=(
-Db_ndebug=false -Db_ndebug=false
-Dman=true -Dman=true
-Dversion-tag=v%{version}-%{release} -Dversion-tag=v%{version}-%{release}
%if 0%{?fedora}
-Dfallback-hostname=fedora -Dfallback-hostname=fedora
%else
-Dfallback-hostname=localhost
%endif
-Ddefault-dnssec=no -Ddefault-dnssec=no
# https://bugzilla.redhat.com/show_bug.cgi?id=1867830 # https://bugzilla.redhat.com/show_bug.cgi?id=1867830
-Ddefault-mdns=no -Ddefault-mdns=no
@ -928,6 +932,9 @@ getent passwd systemd-network &>/dev/null || useradd -r -u 192 -l -g systemd-net
%files standalone-sysusers -f .file-list-standalone-sysusers %files standalone-sysusers -f .file-list-standalone-sysusers
%changelog %changelog
* Mon Mar 01 2021 Josh Boyer <jwboyer@fedoraproject.org> - 248~rc2-2
- Don't set the fallback hostname to Fedora on non-Fedora OSes
* Tue Feb 23 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 248~rc2-1 * Tue Feb 23 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 248~rc2-1
- Latest upstream prelease, just a bunch of small fixes. - Latest upstream prelease, just a bunch of small fixes.
- Fixes #1931957. - Fixes #1931957.