mirror of
https://github.com/rancher/os.git
synced 2025-09-02 15:24:32 +00:00
fix default console detection
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user