mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-14 06:01:25 +00:00
Fix for runtime being fixed
Now the proper label is under the filesystem label Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -161,9 +161,9 @@ func GetState() string {
|
||||
}
|
||||
switch runtime.BootState {
|
||||
case state.Active, state.Passive:
|
||||
label = filepath.Join("/dev/disk/by-label/", runtime.State.Label)
|
||||
label = filepath.Join("/dev/disk/by-label/", runtime.State.FilesystemLabel)
|
||||
case state.Recovery:
|
||||
label = filepath.Join("/dev/disk/by-label/", runtime.Recovery.Label)
|
||||
label = filepath.Join("/dev/disk/by-label/", runtime.Recovery.FilesystemLabel)
|
||||
}
|
||||
Log.Debug().Str("what", label).Msg("Get state label")
|
||||
return label
|
||||
|
Reference in New Issue
Block a user