From 2e9b86757b8c22aedb92a5f42396307df62b5b9d Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Thu, 13 Apr 2017 11:21:28 +0000 Subject: [PATCH] go fmt Signed-off-by: Sven Dowideit --- cmd/control/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/control/install.go b/cmd/control/install.go index 1cb44651..09ac95d7 100755 --- a/cmd/control/install.go +++ b/cmd/control/install.go @@ -135,7 +135,7 @@ func installAction(c *cli.Context) error { device := c.String("device") partition := c.String("partition") statedir := c.String("statedir") - if statedir != "" && installType != "noformat" { + if statedir != "" && installType != "noformat" { log.Fatal("--statedir %s requires --type noformat", statedir) } if installType != "noformat" && @@ -411,7 +411,7 @@ func layDownOS(image, installType, cloudConfig, device, partition, statedir, kap bootDir := "boot/" kernelArgs := "printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait" // console="+CONSOLE if statedir != "" { - kernelArgs = kernelArgs + " rancher.state.directory="+statedir + kernelArgs = kernelArgs + " rancher.state.directory=" + statedir } // unmount on trap