[systemd-devel] systemd-hostnamed/hostnamectl and transient hostname change

Thomas HUMMEL thomas.hummel at pasteur.fr
Mon Apr 27 09:16:31 UTC 2020


On 4/20/20 5:10 PM, Thomas HUMMEL wrote:

> At this point, the transient hostname is unchanged (which is what I'd 
> expect) as seen with hostnamectl above or directly asking dbus:
> 
> [root at maestro-1000 ~]# dbus-send --print-reply --system 
> --dest=org.freedesktop.hostname1 /org/freedesktop/hostname1 
> org.freedesktop.DBus.Properties.Get string:'org.freedesktop.hostname1' 
> string:'Hostname'
> method return time=1587394568.997699 sender=:1.80 -> destination=:1.85 
> serial=9 reply_serial=2
>     variant       string "maestro-1000"
> 
> but a moment later, it get sets to 'toto':

Actually, I noticed this is true when NetworkManager's hostname-mode 
setting is set to 'none'. If set to 'dhcp', the transient hostname 
aligns instantly to the new static one.

Thanks

--
TH




More information about the systemd-devel mailing list