[issue1005] grml-hostname does not modify /etc/hosts correctly

Ulrich Dangel bts at bts.grml.org
Fri Jun 10 10:39:00 CEST 2011


New submission from Ulrich Dangel <mru at grml.org>:

grml-hostname does not modify /etc/hosts correctly as the regex for modifying /etc/hosts is wrong.

Besides fixing the regex we should ship libnss-myhostname to prevent any problems due to manually 
adjusting the hostname.


Example:

(1)-~/src/grml-scripts$ cat /etc/hosts                                                            
127.0.0.1	localhost pisa-vm
::1		localhost ip6-localhost ip6-loopback
fe00::0		ip6-localnet
ff00::0		ip6-mcastprefix
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters


2)-~/src/grml-scripts$ sudo grml-hostname foobar                                                 
Setting hostname to foobar: done
(3)-~/src/grml-scripts$ cat /etc/hosts                                                            
127.0.0.1	localhost pisa-vm
::1		localhost ip6-localhost ip6-loopback
fe00::0		ip6-localnet
ff00::0		ip6-mcastprefix
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

----------
messages: 3843
nosy: mru
priority: bug
status: unread
title: grml-hostname does not modify /etc/hosts correctly

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1005>
_____________________________________


More information about the Bugs-changes mailing list