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

2020-05-11 Thread Thomas HUMMEL
On 5/6/20 11:51 AM, Thomas HUMMEL wrote: On 5/4/20 3:57 PM, Thomas HUMMEL wrote: but hostnamectl --static set-hostname 'static' where current static hostname is already 'static' then transient hostname is never set. Hello, am I wrong on this one ? Hello, sorry to insist, I just wanted to

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

2020-05-06 Thread Thomas HUMMEL
On 5/4/20 3:57 PM, Thomas HUMMEL wrote: but hostnamectl --static set-hostname 'static' where current static hostname is already 'static' then transient hostname is never set. What do you think about it ? Hello, am I wrong on this one ? Thanks for your help -- Thomas HUMMEL __

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

2020-05-04 Thread Thomas HUMMEL
On 4/30/20 10:43 AM, Zbigniew Jędrzejewski-Szmek wrote: Lennart opened a PR to remove the caching: https://github.com/systemd/systemd/pull/15624. Great! The documentation is wrong. The code in hostnamed sets the kernel hostname when setting the static one. This was changed in https://github

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

2020-04-30 Thread Stef Walter
On 30.04.20 10:43, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Apr 27, 2020 at 12:00:36PM +0200, Thomas HUMMEL wrote: >> On 4/27/20 11:51 AM, Mantas Mikulėnas wrote: >> >> Hello, thanks for your answer. >> >>> On Mon, Apr 20, 2020 at 6:17 PM Thomas HUMMEL >>> mailto:thomas.hum...@pasteur.fr>> >>>

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

2020-04-30 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Apr 27, 2020 at 12:00:36PM +0200, Thomas HUMMEL wrote: > On 4/27/20 11:51 AM, Mantas Mikulėnas wrote: > > Hello, thanks for your answer. > > >On Mon, Apr 20, 2020 at 6:17 PM Thomas HUMMEL > >mailto:thomas.hum...@pasteur.fr>> > >wrote: > > > >1. why does the transient hostname change w

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

2020-04-27 Thread Thomas HUMMEL
On 4/27/20 11:51 AM, Mantas Mikulėnas wrote: Hello, thanks for your answer. On Mon, Apr 20, 2020 at 6:17 PM Thomas HUMMEL > wrote: 1. why does the transient hostname change while I stated --static only while running hostnamectl ? 2. why does the ch

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

2020-04-27 Thread Mantas Mikulėnas
On Mon, Apr 20, 2020 at 6:17 PM Thomas HUMMEL wrote: > 1. why does the transient hostname change while I stated --static only > while running hostnamectl ? > > 2. why does the change take some time to appear on dbus ? > Hostnamed does not implement receiving hostname change notifications from th

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

2020-04-27 Thread Thomas HUMMEL
On 4/27/20 11:16 AM, Thomas HUMMEL wrote: 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. Sorry I may be wrong on this one as I can not reproduce it. Thanks -- TH

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

2020-04-27 Thread Thomas HUMMEL
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@maestro-1000 ~]# dbus-send --print-reply --system --dest=org.freedesktop.hostname1 /org/freedesktop/hostname1 o

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

2020-04-20 Thread Thomas HUMMEL
Hello, I hope I'm not on the wrong list to ask this. On CentOS 8.1 x86_64/systemd-239-18.el8_1.4.x86_64 I'm experiencing the following: Starting with no static hostname and a transient hostname set by dracut/initrd (this is a PXE booted stateless osimage and 'hostname-mode' is set to 'none'