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

Re: systemd uses transient hostname instead of static hostname



Am 2015-03-10 00:18, schrieb Hanspeter Kunz:
Hi list,

i just upgraded a few systems to jessie an noticed that all of them
"loose" their hostnames on reboot, because systemd is using/reverting to
"Linux" as transient hostname. This happens early in the boot process.

journalctl -b says:

[...]
Mär 10 00:00:46 maximilian systemd[1]: Mounting Debug File System...
Mär 10 00:00:46 maximilian systemd[1]: Starting Load Kernel Modules...
Mär 10 00:00:46 maximilian systemd[1]: Starting Journal Service...
Mär 10 00:00:46 maximilian systemd[1]: Started Journal Service.
Mär 10 00:00:46 maximilian systemd-journal[285]: Journal started
Mär 10 00:00:46 Linux systemd[1]: Starting Slices.
Mär 10 00:00:46 Linux systemd[1]: Reached target Slices.
Mär 10 00:00:46 Linux systemd[1]: Mounted Debug File System.
Mär 10 00:00:46 Linux systemd[1]: Mounted Huge Pages File System.
[...]

(notice the change of the hostname at line 6)

I can do

hostnamectl set-hostname --transient maximilian

and after that every works fine - until the next reboot.

Does anybody have an idea what could be causing this or how to fix it?

I can't reproduce this.
What's the content of your /etc/hostname?
What's the output of "ls -la /etc/os-release /usr/lib/os-release" and
the content of those files.


Reply to: