mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-09-15 23:01:28 +00:00
Add init system information to state output (#56)
Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user