On Mon, Jun 13, 2022 at 2:11 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
On Mon, Jun 13, 2022 at 2:10 PM Matthew Miller <mattdm(a)fedoraproject.org> wrote:
>
> On Fri, Jun 10, 2022 at 04:01:03PM -0400, Neal Gompa wrote:
> > openSUSE uses a randomly generated suffix for default hostnames, which
> > neatly solves this problem. It makes autodiscovery and other things
> > actually work properly. As it is, having just "fedora" breaks too
much
> > stuff. If it was "fedora-XXXXX", then we could probably keep it.
>
> How do they implement this? I wonder if it would make sense to have
> systemd-hostname understand some character like # (which isn't valid in
> hostnames) in DEFAULT_HOSTNAME to be replaced with a random number seeded
> from the machine-id?
>
YaST generates a linux-XXXX hostname when you install it. The "XXXX"
string is alphanumeric.
Also, yeah, I think if systemd-hostname could do something like that,
we could do that instead of forcing localhost.
--
真実はいつも一つ!/ Always, there's only one truth!