mirror of
https://github.com/rancher/os.git
synced 2025-09-15 22:49:08 +00:00
Merge pull request #1550 from joshwget/run-udev-before-early-cloud-init
Run udev before early cloud-init
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user