On Wed, 2015-03-11 at 14:26 +0100, Michael Biebl wrote: > 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.
hkunz@maximilian:^~% cat /etc/hostname maximilian hkunz@maximilian:^~% ls -la /etc/os-release lrwxrwxrwx 1 root root 21 Nov 30 13:37 /etc/os-release -> ../usr/lib/os-release hkunz@maximilian:^~% ls -a /usr/lib/os-release /usr/lib/os-release hkunz@maximilian:^~% cat /usr/lib/os-release PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="https://bugs.debian.org/" this looks fine to me. anyhow I realized that I had (by mistake) kernel.hostname = kernel.domainname = in /etc/sysctl.d/10-networking.conf I filled in the correct values and that fixed the problem. Probably it would also have worked if I just removed those lines, but I did not test that. Best and thanks for your support, Hp
smime.p7s
Description: S/MIME cryptographic signature