mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-16 06:29:46 +00:00
Rework install a bit more (#100)
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
11
main.go
11
main.go
@@ -409,16 +409,7 @@ This command is meant to be used from the boot GRUB menu, but can be also starte
|
||||
}
|
||||
config := c.Args().First()
|
||||
|
||||
options := map[string]string{"device": c.String("device")}
|
||||
|
||||
if c.Bool("poweroff") {
|
||||
options["poweroff"] = "true"
|
||||
}
|
||||
|
||||
if c.Bool("reboot") {
|
||||
options["reboot"] = "true"
|
||||
}
|
||||
return agent.ManualInstall(config, options, c.Bool("strict-validation"))
|
||||
return agent.ManualInstall(config, c.String("device"), c.Bool("reboot"), c.Bool("poweroff"), c.Bool("strict-validation"))
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user