1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Add explicit wait to dhcp

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-06-14 20:45:03 +10:00
parent 5078c80c36
commit 8a741c5d32
3 changed files with 7 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ func ApplyNetworkConfig(cfg *config.CloudConfig) {
}
// TODO: don't write to the file if nameservers is still empty
log.Infof("Writing resolv.conf (%v) %v", nameservers, search)
if _, err := resolvconf.Build("/etc/resolv.conf", nameservers, search, nil); err != nil {
log.Error(err)
}