There are two problems with the patch:
1. netcfg/hostname=ubuntu (or any value containing "ubuntu") remains unfixed.
2. Certain DHCP hostnames can result in corrupting the hosts file.
For example, with DHCP name "node" and "netcfg/hostname=newname" we have this command:
/bin/sed -i "s/$CURRENT_HOSTNAME/$NETCFG_HOSTNAME/" /etc/hosts
which would change "ff02::1 ip6-allnodes" into "ff02::1 ip6-allnewnames".
(I actually ran into the first issue, trying to set hostname "ubuntu" which failed and resulted in a hostname that consists of an IP address...)
There are two problems with the patch: hostname= ubuntu (or any value containing "ubuntu") remains unfixed.
1. netcfg/
2. Certain DHCP hostnames can result in corrupting the hosts file.
For example, with DHCP name "node" and "netcfg/ hostname= newname" we have this command: HOSTNAME/ $NETCFG_ HOSTNAME/ " /etc/hosts
/bin/sed -i "s/$CURRENT_
which would change "ff02::1 ip6-allnodes" into "ff02::1 ip6-allnewnames".
(I actually ran into the first issue, trying to set hostname "ubuntu" which failed and resulted in a hostname that consists of an IP address...)