BTS

Message3843

Author mru
Recipients mru
Date 2011-06-10.08:38:59
Content
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
History
Date User Action Args
2011-06-10 08:39:02mrusetrecipients: + mru
2011-06-10 08:39:00mrusetmessageid: <1307695140.57.0.754835905502.issue1005@bts.grml.org>
2011-06-10 08:39:00mrulinkissue1005 messages
2011-06-10 08:38:59mrucreate