Rework install a bit more (#100)

Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Itxaka
2023-07-25 09:12:39 +02:00
committed by GitHub
parent 956f86f99c
commit bca3277b7d
6 changed files with 75 additions and 142 deletions

11
main.go
View File

@@ -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"))
},
},
{