mirror of
https://github.com/rancher/os.git
synced 2025-07-20 09:59:03 +00:00
fix default console detection
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
7cb46e1919
commit
ce9ae25741
@ -182,6 +182,10 @@ func CurrentConsole() (console string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.Contains(image.Name(), "os-console") {
|
||||||
|
console = "default"
|
||||||
|
return
|
||||||
|
}
|
||||||
console = strings.TrimPrefix(strings.TrimSuffix(image.Name(), "console"), "rancher/os-")
|
console = strings.TrimPrefix(strings.TrimSuffix(image.Name(), "console"), "rancher/os-")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user