On 25/01/2019 21.20, Michael Hirmke wrote:
> this is not an installer bug, though it may seem
> Read the man page for /etc/hostname carefully:
> The /etc/hostname file configures the *name* of the local system that is
> set during boot using the sethostname(2) system call. It should contain
> a single newline-terminated hostname string. Comments (lines starting
> with a `#') are ignored. The hostname may be a free-form string up to 64
> characters in length; however, *it is recommended that it consists only*
> *of 7-bit ASCII lower-case characters and no spaces or dots*, and limits
> itself to the format allowed *for DNS domain name labels*, even though
> this is not a strict requirement.
> It cost me 2 weeks to find out, that during boot process the
> combination of kernel, systemd and NetworkManager behaviour led to two
> changes for the hostname - the first one was set by the kernel without
> the domain part during pre boot, the second one was set by
> NetworkManager, who got it from systemd-hostnamed, who in turn read it
> from /etc/hostname.
> If the logon manager (sddm, ...) was up before the second change took
> place, it created a cookie, that gets written into .Xauthority after
> logon. When the hostname changes for the second time after logon, the
> cookie isn't valid any longer, because it contains the name without the
> domain part, but now the machine's name contains the domain part.
I think this is the misleading part:
"limits itself to the format allowed *for DNS domain name labels*"
So to my understanding it may contain fqdns.
All my etc/hostname files contains strings with dot:
Then we can not enter the domain?
Then YaST is doing it wrong, because the name is set in
Maybe, maybe not.
I strongly suspect NetworkManager/systemd, as I wrote before.
Cheers / Saludos,
Carlos E. R.
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse+owner(a)opensuse.org