Bug 18313 - after entering the hostname, two lines appear in /etc/HOSTNAME
Summary: after entering the hostname, two lines appear in /etc/HOSTNAME
Status: CLOSED FIXED
Alias: None
Product: Branch 4.1
Classification: Distributions
Component: alterator-net-eth (show other bugs)
Version: unspecified
Hardware: all Linux
: P2 blocker
Assignee: inger@altlinux.org
QA Contact: qa-4.1@altlinux.org
URL:
Keywords:
Depends on:
Blocks: 18290 18291
  Show dependency tree
 
Reported: 2008-12-23 17:32 MSK by Ivan Zakharyaschev
Modified: 2009-01-26 18:40 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
...