From 43e3d380f4fcb44be19f5db4048eb489ef71e018 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 7 Apr 2015 11:41:57 -0700 Subject: [PATCH] Attempt to set hostname from DHCP --- cmd/network/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/network/network.go b/cmd/network/network.go index 9b1f7339..8d944030 100644 --- a/cmd/network/network.go +++ b/cmd/network/network.go @@ -116,7 +116,7 @@ func ApplyNetworkConfigs(netCfg *config.NetworkConfig) error { func applyNetConf(link netlink.Link, netConf config.InterfaceConfig) error { if netConf.DHCP { log.Infof("Running DHCP on %s", link.Attrs().Name) - cmd := exec.Command("dhcpcd", "-A4", link.Attrs().Name) + cmd := exec.Command("dhcpcd", "-A4H", link.Attrs().Name) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil {