mirror of
https://github.com/rancher/os.git
synced 2025-07-22 02:41:33 +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
|
||||
}
|
||||
|
||||
if strings.Contains(image.Name(), "os-console") {
|
||||
console = "default"
|
||||
return
|
||||
}
|
||||
console = strings.TrimPrefix(strings.TrimSuffix(image.Name(), "console"), "rancher/os-")
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user