Add init system information to state output (#56)

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka
2023-10-18 17:16:12 +02:00
committed by GitHub
parent 7d4292eaa6
commit 2ecbdbbd3f
2 changed files with 30 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ type PartitionState struct {
type Kairos struct {
Flavor string `yaml:"flavor" json:"flavor"`
Version string `yaml:"version" json:"version"`
Init string `yaml:"init" json:"init"`
}
type Runtime struct {
@@ -224,6 +225,7 @@ func detectKairos(r *Runtime) {
if err == nil {
k.Version = v
}
k.Init = utils.GetInit()
r.Kairos = *k
}