Part of the localnet script is setting up the system's hostname. This needs to be configured in the /etc/sysconfig/network file.
Assuming you will reuse your host name on the new system this command will work. If you will use a different host name on your new system edit this file accordingly:
echo "HOSTNAME=$(hostname)" > /tmp/network.new install -m644 /tmp/network.new /etc/sysconfig/network rm /tmp/network.new