1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Make the bootstrap phase logable

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-09-13 16:02:53 +10:00
parent 449633abaa
commit b92a7752f4
4 changed files with 4 additions and 14 deletions

View File

@@ -7,16 +7,13 @@ import (
"strings"
"time"
"github.com/codegangsta/cli"
"github.com/rancher/os/config"
"github.com/rancher/os/log"
"github.com/rancher/os/util"
)
func bootstrapAction(c *cli.Context) error {
func BootstrapMain() {
log.InitLogger()
log.Info("Running cloud-init-save")
log.Debugf("bootstrapAction")
if err := UdevSettle(); err != nil {
@@ -62,8 +59,6 @@ func bootstrapAction(c *cli.Context) error {
if err := UdevSettle(); err != nil {
log.Errorf("Failed to run udev settle: %v", err)
}
return nil
}
func mdadmScan() error {