Fix running elemental

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-03-01 15:47:51 +01:00
parent 2e8e30aa13
commit 4fabf06d7f

View File

@@ -4,6 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kairos-io/kairos/pkg/utils"
"os" "os"
"path/filepath" "path/filepath"
"time" "time"
@@ -81,7 +82,7 @@ func (s *State) RunStageOp(stage string) func(context.Context) error {
if internalUtils.Log.GetLevel() == zerolog.DebugLevel { if internalUtils.Log.GetLevel() == zerolog.DebugLevel {
cmd = fmt.Sprintf("%s --debug", cmd) cmd = fmt.Sprintf("%s --debug", cmd)
} }
output, err := internalUtils.CommandWithPath(cmd) output, err := utils.SH(cmd)
internalUtils.Log.Debug().Msg(output) internalUtils.Log.Debug().Msg(output)
return err return err
} }