mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-02 00:27:46 +00:00
arrow_up: Bump go in Earthly and workflows to ^1.20 (#1213)
* Bump go in Earthly and workflows to ^1.20 Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Update go.mod version Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Lint Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Remove pin of go version to get the latest Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Remove minor version Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> --------- Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
parent
e7807dd66c
commit
961804be0a
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
type RunStage struct{}
|
type RunStage struct{}
|
||||||
|
|
||||||
func (r RunStage) Run(c config.Config) error {
|
func (r RunStage) Run(_ config.Config) error {
|
||||||
utils.SH("elemental run-stage kairos-install.after") //nolint:errcheck
|
utils.SH("elemental run-stage kairos-install.after") //nolint:errcheck
|
||||||
events.RunHookScript("/usr/bin/kairos-agent.install.after.hook") //nolint:errcheck
|
events.RunHookScript("/usr/bin/kairos-agent.install.after.hook") //nolint:errcheck
|
||||||
return nil
|
return nil
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package agent
|
package agent
|
||||||
|
|
||||||
var DefaultBanner []byte = []byte{
|
var DefaultBanner = []byte{
|
||||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
|
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
|
||||||
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x01, 0x70, 0x00, 0x00, 0x01, 0xae,
|
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x01, 0x70, 0x00, 0x00, 0x01, 0xae,
|
||||||
0x08, 0x06, 0x00, 0x00, 0x00, 0x89, 0x2d, 0x5d, 0x60, 0x00, 0x00, 0x00,
|
0x08, 0x06, 0x00, 0x00, 0x00, 0x89, 0x2d, 0x5d, 0x60, 0x00, 0x00, 0x00,
|
||||||
|
@ -312,11 +312,7 @@ func RunInstall(options map[string]string) error {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := hook.Run(*c, hook.AfterInstall...); err != nil {
|
return hook.Run(*c, hook.AfterInstall...)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func ensureDataSourceReady() {
|
func ensureDataSourceReady() {
|
||||||
|
@ -62,10 +62,10 @@ func (b *Bus) Initialize() {
|
|||||||
err := fmt.Sprintf("Provider %s at %s had an error: %s", p.Name, p.Executable, r.Error)
|
err := fmt.Sprintf("Provider %s at %s had an error: %s", p.Name, p.Executable, r.Error)
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
} else {
|
}
|
||||||
if r.State != "" {
|
|
||||||
fmt.Println(fmt.Sprintf("[provider event: %s]", e), r.State)
|
if r.State != "" {
|
||||||
}
|
fmt.Println(fmt.Sprintf("[provider event: %s]", e), r.State)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@ import (
|
|||||||
"embed"
|
"embed"
|
||||||
"io"
|
"io"
|
||||||
"io/fs"
|
"io/fs"
|
||||||
"io/ioutil"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@ -210,7 +209,7 @@ func Start(ctx context.Context) error {
|
|||||||
args = append(args, "--device", installationDevice)
|
args = append(args, "--device", installationDevice)
|
||||||
|
|
||||||
// create tempfile to store cloud-config, bail out if we fail as we couldn't go much further
|
// create tempfile to store cloud-config, bail out if we fail as we couldn't go much further
|
||||||
file, err := ioutil.TempFile("", "install-webui")
|
file, err := os.CreateTemp("", "install-webui")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("could not create tmpfile for cloud-config: %s", err.Error())
|
log.Fatalf("could not create tmpfile for cloud-config: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user