[opensuse-factory] Hostname changed to localhost
Hello. I have updated today from Factory:snapshot. Hostname is changed to 'localhost'. http://susepaste.org/17651489 (changed back to 'lazy', not logout yet). Updated packages: http://susepaste.org/view/simple/75077134 -- WBR Kyrill
Am 24.04.2013 20:49, schrieb Kyrill Detinov:
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
It's systemd using /etc/hostname instead of /etc/HOSTNAME I worked around it by doing ln -s HOSTNAME /etc/hostname (in my case NetworkManager did set the correct hostname, but later during boot). -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
El 24/04/13 16:25, Stefan Seyfried escribió:
Am 24.04.2013 20:49, schrieb Kyrill Detinov:
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
It's systemd using /etc/hostname instead of /etc/HOSTNAME
I worked around it by doing
ln -s HOSTNAME /etc/hostname
(in my case NetworkManager did set the correct hostname, but later during boot).
There is a (SUSE specific patch) to handle this difference.. however.. it seems this hack does not work. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
El 24/04/13 16:25, Stefan Seyfried escribió:
Am 24.04.2013 20:49, schrieb Kyrill Detinov:
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
It's systemd using /etc/hostname instead of /etc/HOSTNAME
I worked around it by doing
ln -s HOSTNAME /etc/hostname
(in my case NetworkManager did set the correct hostname, but later during boot).
For some reason, all debian derivatives, Fedora, redhat, centos, Mandriva, etc.. have /etc/hostname .. all except us and slackware.. (maybe comes from that old times ? :-D) Guess what.. it is still called /etc/HOSTNAME here to please YAST :-| -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 24.04.2013 22:23, schrieb Cristian Rodríguez:
El 24/04/13 16:25, Stefan Seyfried escribió:
Am 24.04.2013 20:49, schrieb Kyrill Detinov:
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
It's systemd using /etc/hostname instead of /etc/HOSTNAME
I worked around it by doing
ln -s HOSTNAME /etc/hostname
(in my case NetworkManager did set the correct hostname, but later during boot).
For some reason, all debian derivatives, Fedora, redhat, centos, Mandriva, etc.. have /etc/hostname .. all except us and slackware.. (maybe comes from that old times ? :-D)
That's why I just symlinked it. Old tools can edit HOSTNAME, sytemd can use hostname. Everybody is happy.
Guess what.. it is still called /etc/HOSTNAME here to please YAST :-|
I'd rather add the symlink than hack YaST :-) -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2013-04-24 22:49 (GMT+0400) Kyrill Detinov composed:
I have updated today from Factory:snapshot.
Newest file I see on factory-snapshot oss 586 is March 11 Newest file I see on factory oss 586 is April 23 Where is factory:snapshot located?
Hostname is changed to 'localhost'.
http://susepaste.org/17651489 (changed back to 'lazy', not logout yet).
Updated packages: http://susepaste.org/view/simple/75077134 -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation)
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, 24 Apr 2013 17:09:02 -0400 Felix Miata wrote:
I have updated today from Factory:snapshot.
Newest file I see on factory-snapshot oss 586 is March 11 Newest file I see on factory oss 586 is April 23
Where is factory:snapshot located?
http://download.opensuse.org/factory/repo/oss/ -- WBR Kyrill
On 2013-04-25 01:24 (GMT+0400) Kyrill Detinov composed:
On Wed, 24 Apr 2013 17:09:02 -0400 Felix Miata wrote:
On 2013-04-24 22:49 (GMT+0400) Kyrill Detinov composed:
I have updated today from Factory:snapshot.
Newest file I see on factory-snapshot oss 586 is March 11 Newest file I see on factory oss 586 is April 23
Where is factory:snapshot located?
That's Factory, the place I listed above. Why did you call it Factory:snapshot? -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, 24 Apr 2013 17:36:36 -0400 Felix Miata wrote:
Where is factory:snapshot located?
That's Factory, the place I listed above. Why did you call it Factory:snapshot?
I think, it is. It is published sometimes, not every day. -- WBR Kyrill
On Wednesday 2013-04-24 23:51, Kyrill Detinov wrote:
On Wed, 24 Apr 2013 17:36:36 -0400 Felix Miata wrote:
Where is factory:snapshot located?
That's Factory, the place I listed above. Why did you call it Factory:snapshot?
I think, it is. It is published sometimes, not every day.
The snapshot is at /factory-snapshot/repo/oss (or so the name would suggest). -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Le mercredi 24 avril 2013 à 22:49 +0400, Kyrill Detinov a écrit :
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
http://susepaste.org/17651489 (changed back to 'lazy', not logout yet).
Updated packages: http://susepaste.org/view/simple/75077134
As some people already noted, systemd is using /etc/hostname (if it exists), since it is the "cross-distro" default, and will use /etc/HOSTNAME (SUSE only) only as a fallback. So, did you had /etc/hostname set (I don't, on my test systems) ? We should probably package /etc/hostname symlink to /etc/HOSTNAME as part of netcfg.. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 26.04.2013 14:50, schrieb Frederic Crozat:
Le mercredi 24 avril 2013 à 22:49 +0400, Kyrill Detinov a écrit :
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
http://susepaste.org/17651489 (changed back to 'lazy', not logout yet).
Updated packages: http://susepaste.org/view/simple/75077134
As some people already noted, systemd is using /etc/hostname (if it exists), since it is the "cross-distro" default, and will use /etc/HOSTNAME (SUSE only) only as a fallback.
So, did you had /etc/hostname set (I don't, on my test systems) ?
I did not have /etc/hostname, but the fallback did not work. Note that NetworkManager later set the hostname correctly from /etc/HOSTNAME (or wherever it got it), so it was only visible early during boot (or in the beginning of journalctl -b).
We should probably package /etc/hostname symlink to /etc/HOSTNAME as part of netcfg..
Yeah, that would be the easiest way probably. -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Le vendredi 26 avril 2013 à 15:28 +0200, Stefan Seyfried a écrit :
Am 26.04.2013 14:50, schrieb Frederic Crozat:
Le mercredi 24 avril 2013 à 22:49 +0400, Kyrill Detinov a écrit :
Hello.
I have updated today from Factory:snapshot. Hostname is changed to 'localhost'.
http://susepaste.org/17651489 (changed back to 'lazy', not logout yet).
Updated packages: http://susepaste.org/view/simple/75077134
As some people already noted, systemd is using /etc/hostname (if it exists), since it is the "cross-distro" default, and will use /etc/HOSTNAME (SUSE only) only as a fallback.
So, did you had /etc/hostname set (I don't, on my test systems) ?
I did not have /etc/hostname, but the fallback did not work. Note that NetworkManager later set the hostname correctly from /etc/HOSTNAME (or wherever it got it), so it was only visible early during boot (or in the beginning of journalctl -b).
Indeed. I guess my fallback code isn't working.. I'll look into it. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 26.04.2013 15:35, schrieb Frederic Crozat:
Indeed. I guess my fallback code isn't working.. I'll look into it.
Maybe just putting the symlink into /etc is the easiest (and most obvious) solution, with very little maintainance effort. -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Le vendredi 26 avril 2013 à 16:01 +0200, Stefan Seyfried a écrit :
Am 26.04.2013 15:35, schrieb Frederic Crozat:
Indeed. I guess my fallback code isn't working.. I'll look into it.
Maybe just putting the symlink into /etc is the easiest (and most obvious) solution, with very little maintainance effort.
Too late ;) I've just pushed the fix, it is pending for B:S and later to Factory. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (6)
-
Cristian Rodríguez
-
Felix Miata
-
Frederic Crozat
-
Jan Engelhardt
-
Kyrill Detinov
-
Stefan Seyfried