1
0
mirror of https://github.com/rancher/os.git synced 2025-09-23 19:40:15 +00:00

Run udev before early cloud-init

This commit is contained in:
Josh Curl
2017-01-24 11:51:47 -08:00
parent 27b07dab5a
commit 61191056a7

View File

@@ -37,6 +37,7 @@ import (
"github.com/coreos/coreos-cloudinit/pkg"
"github.com/docker/docker/pkg/mount"
"github.com/rancher/os/cmd/cloudinitsave/gce"
"github.com/rancher/os/cmd/control"
"github.com/rancher/os/cmd/network"
rancherConfig "github.com/rancher/os/config"
"github.com/rancher/os/log"
@@ -57,6 +58,10 @@ func Main() {
log.InitLogger()
log.Info("Running cloud-init-save")
if err := control.UdevSettle(); err != nil {
log.Errorf("Failed to run udev settle: %v", err)
}
cfg := rancherConfig.LoadConfig()
network.ApplyNetworkConfig(cfg)