mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-09-01 23:36:47 +00:00
🌱 Read os-release attributes using kairos prefix (#12)
* Read os-release attributes using kairos prefix Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Refactor other functions to use OSRelease Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Misc refactoring Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> --------- Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
@@ -154,10 +154,8 @@ func detectSystem(r *Runtime) {
|
||||
|
||||
func detectKairos(r *Runtime) {
|
||||
k := &Kairos{}
|
||||
flavor, err := utils.OSRelease("FLAVOR")
|
||||
if err == nil {
|
||||
k.Flavor = flavor
|
||||
}
|
||||
k.Flavor = utils.Flavor()
|
||||
|
||||
v, err := utils.OSRelease("VERSION")
|
||||
if err == nil {
|
||||
k.Version = v
|
||||
|
Reference in New Issue
Block a user