mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-17 23:37:44 +00:00
Show sources in config string
and remove directory which is only meant to be used by yip configs (not user configs read by the kairos-agent). This needs to be explained in the release notes. Needs this: https://github.com/kairos-io/kairos-sdk/pull/501 Part of: https://github.com/kairos-io/kairos/issues/2737 Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
@@ -2,6 +2,8 @@ package agent
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
hook "github.com/kairos-io/kairos-agent/v2/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos-agent/v2/internal/bus"
|
||||
config "github.com/kairos-io/kairos-agent/v2/pkg/config"
|
||||
@@ -10,7 +12,6 @@ import (
|
||||
"github.com/kairos-io/kairos-sdk/collector"
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
"os"
|
||||
)
|
||||
|
||||
// Run starts the agent provider emitting the bootstrap event.
|
||||
@@ -37,7 +38,7 @@ func Run(opts ...Option) error {
|
||||
}
|
||||
|
||||
fileName := "/var/log/kairos/agent-provider.log"
|
||||
|
||||
|
||||
if !machine.SentinelExist("firstboot") {
|
||||
spec := v1.EmptySpec{}
|
||||
if err := hook.Run(*c, &spec, hook.FirstBoot...); err != nil {
|
||||
|
Reference in New Issue
Block a user