I think Peter Wu is totally right.

In addition to above two problems, there is still another problem with
the patch that the present regular expression '/bin/sed -i
"s/$CURRENT_HOSTNAME/$NETCFG_HOSTNAME/" /etc/hosts' can't handle
multiple hostname case:

$ echo '127.0.1.1  ubuntu.me.com   ubuntu' |sed "s/ubuntu/newnode/" 
127.0.1.1  newnode.me.com   ubuntu

$ echo '127.0.1.1  ubuntu.me.com   ubuntu' |sed "s/ubuntu/newnode/g" 
127.0.1.1  newnode.me.com   newnode

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202

Title:
  ubuntu preseed install fails to set a hostname

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1452202/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to