Re: hostname-mode=default and hostname set outside NM



On 4/27/20 5:20 PM, Beniamino Galvani wrote:

It uses systemd-hostnamed, and falls back to gethostname() in case of
failure [1].
I should then try to remove hostnamed just to figure out why in

1) hostname from initrd : fqdn
2) NM starts : hostname-originial == fqdn
3) dhcp : short name
4) an external tool issues hostname <short name> and creates another higher priority NM profile

NM (hostname-mode=default) restores the fqdn (as seen in traces) instead of the short one in 3) which, according to what you just explained is the LAST externally set.

I'll try to figure out this myself...Thanks for your help.

--
TH



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]