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

add --debug logging option to installer, and a dummy set-disk-partitions

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-01-18 10:50:37 +10:00
parent ad5fad46ee
commit 8e5eba0ac5
4 changed files with 23 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ var installCommand = cli.Command{
Name: "kexec",
Usage: "reboot using kexec",
},
cli.BoolFlag{
Name: "debug",
Usage: "Run installer with debug output",
},
},
}
@@ -81,6 +85,13 @@ func installAction(c *cli.Context) error {
if c.Args().Present() {
log.Fatalf("invalid arguments %v", c.Args())
}
if c.Bool("debug") {
originalLevel := log.GetLevel()
defer log.SetLevel(originalLevel)
log.SetLevel(log.DebugLevel)
}
kappend := strings.TrimSpace(c.String("append"))
force := c.Bool("force")
kexec := c.Bool("kexec")