mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-17 07:17:41 +00:00
Move checkRoot to main
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
@@ -55,10 +55,6 @@ func displayInfo(agentConfig *Config) {
|
||||
}
|
||||
|
||||
func ManualInstall(c, device string, reboot, poweroff, strictValidations bool) error {
|
||||
if err := checkRoot(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
@@ -89,10 +85,6 @@ func ManualInstall(c, device string, reboot, poweroff, strictValidations bool) e
|
||||
}
|
||||
|
||||
func Install(dir ...string) error {
|
||||
if err := checkRoot(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var cc *config.Config
|
||||
var err error
|
||||
|
||||
|
Reference in New Issue
Block a user