Bug 18313

Summary: after entering the hostname, two lines appear in /etc/HOSTNAME
Product: Branch 4.1 Reporter: Ivan Zakharyaschev <imz>
Component: alterator-net-ethAssignee: inger <inger>
Status: CLOSED FIXED QA Contact: qa-4.1 <qa-4.1>
Severity: blocker    
Priority: P2 CC: slazav
Version: unspecified   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 18290, 18291    

Description Ivan Zakharyaschev 2008-12-23 17:32:33 MSK
alterator-net-eth-3.1-alt5.M41.2

After entering the hostname, two lines appear in /etc/HOSTNAME, as described in https://bugzilla.altlinux.org/show_bug.cgi?id=18289#c6 :

After this action in alterator:

# diff -dur /etc/net{.orig,}
Только в /etc/net/ifaces: eth0
# cat /etc/HOSTNAME
dell.home
dell.home
# 

The two entries in /etc/HOSTNAME are without any spaces, but with a new line. 

I don't know whether two lines are allowed or this is an error.

(This also triggers a minor bug in the code of etcnet: https://bugzilla.altlinux.org/show_bug.cgi?id=18289 -- unexpected expansion to many words.) And then it is probably the reason for further non-working things: https://bugzilla.altlinux.org/show_bug.cgi?id=18290 , https://bugzilla.altlinux.org/show_bug.cgi?id=18291 .
Comment 1 Ivan Zakharyaschev 2008-12-23 18:53:18 MSK
It happens in the 4.1 Desktop LiveCD.
Comment 2 inger@altlinux.org 2008-12-24 22:25:16 MSK
Наверное проще всего поставить зависимость на новый setup где /etc/HOSTNAME это ссылка на proc и убрать заполнение /etc/HOSTNAME.
Comment 3 inger@altlinux.org 2009-01-26 18:40:47 MSK
(In reply to comment #2)
> Наверное проще всего поставить зависимость на новый setup где /etc/HOSTNAME это
> ссылка на proc и убрать заполнение /etc/HOSTNAME.

$ rpm -q alterator-net-eth --lastchange
* Чтв Янв 15 2009 Stanislav Ievlev <inger@altlinux.org> 3.3-alt1
- don't setup /etc/HOSTNAME
...