Re: SOLVED: systemd uses transient hostname instead of static hostname
On Wed, 2015-03-11 at 15:14 +0100, Michael Biebl wrote: > Am 2015-03-11 14:44, schrieb Hanspeter Kunz: > > On Wed, 2015-03-11 at 14:26 +0100, Michael Biebl wrote: > >> 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. > > [..] > > > this looks fine to me. > > yep > > > anyhow I realized that I had (by mistake) > > > > kernel.hostname = > > kernel.domainname = > > > > in /etc/sysctl.d/10-networking.conf > > Interesting, did you create that file yourself? I can't find a package > in the archive shipping that file. yes, i manage this file with puppet (since ancient times). because of a typo puppet did not fill in the correct values (but did not complain either). until jessie (systemd) this had no negative effects and went therefore unnoticed - probably since lenny :) Best, Hp smime.p7s Description: S/MIME cryptographic signature
Re: SOLVED: systemd uses transient hostname instead of static hostname
Am 2015-03-11 14:44, schrieb Hanspeter Kunz: On Wed, 2015-03-11 at 14:26 +0100, Michael Biebl wrote: 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. [..] this looks fine to me. yep anyhow I realized that I had (by mistake) kernel.hostname = kernel.domainname = in /etc/sysctl.d/10-networking.conf Interesting, did you create that file yourself? I can't find a package in the archive shipping that file. 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. Most likely, given that this file is not installed by default. Glad you figured it out yourself already and it works now. Michael -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/d03ca631509fe452f6d5647ada47b...@michaelbiebl.de
SOLVED: systemd uses transient hostname instead of static hostname
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
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. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/ab8275959a7d6eb3a690db2dfbdec...@michaelbiebl.de
systemd uses transient hostname instead of static hostname
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? Best, Hanspeter -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1425943118.1934.6.ca...@ifi.uzh.ch