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