1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 06:32:09 +00:00

use new os-base with dhcpcd

This commit is contained in:
wlan0 2015-03-31 14:28:14 -07:00 committed by Darren Shepherd
parent d67aec9122
commit 7cc2eb316c
2 changed files with 3 additions and 5 deletions

View File

@ -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("udhcpc", "-i", link.Attrs().Name, "-t", "20", "-n")
cmd := exec.Command("dhcpcd", link.Attrs().Name)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {

View File

@ -211,10 +211,8 @@ func NewConfig() *Config {
},
"network": {
Image: "network",
CapAdd: []string{
"NET_ADMIN",
},
Net: "host",
Privileged: true,
Net: "host",
Labels: []string{
DETACH + "=false",
},