Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed May 1, 2023
1 parent 95a7ba9 commit 978aa33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/agent/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
v1 "github.com/kairos-io/kairos/v2/pkg/types/v1"
"net/url"
"os"
"os/exec"
Expand All @@ -18,6 +19,7 @@ import (
hook "github.com/kairos-io/kairos/v2/internal/agent/hooks"
"github.com/kairos-io/kairos/v2/internal/bus"
"github.com/kairos-io/kairos/v2/internal/cmd"
"github.com/kairos-io/kairos/v2/pkg/action/"
config "github.com/kairos-io/kairos/v2/pkg/config"
"github.com/kairos-io/kairos/v2/pkg/config/collector"
qr "github.com/mudler/go-nodepair/qrcode"
Expand Down Expand Up @@ -302,6 +304,10 @@ func RunInstall(options map[string]string) error {
args = append(args, optsToArgs(options)...)
args = append(args, "-c", f.Name(), device)

installSpec := &v1.InstallSpec{}
installConfig := &v1.RunConfig{}
action.NewInstallAction(installConfig, installSpec)

cmd := exec.Command("elemental", args...)
cmd.Env = os.Environ()
cmd.Stdout = os.Stdout
Expand Down

0 comments on commit 978aa33

Please sign in to comment.