1
0
mirror of https://github.com/rancher/os.git synced 2025-07-15 15:51:36 +00:00

ALL top level cloud-config keys as kernel args work now if prefixed with "cc.", while prefixed just with "rancher." works as well for legacy backward compat

This commit is contained in:
Serhiy Berezin 2016-12-02 01:16:42 +00:00
parent 9755a37fe6
commit 3cc41b0a98

View File

@ -159,7 +159,9 @@ func parseCmdline(cmdLine string) map[interface{}]interface{} {
outer:
for _, part := range strings.Split(cmdLine, " ") {
if !strings.HasPrefix(part, "rancher.") {
if strings.HasPrefix(part, "cc.") {
part = part[3:]
} else if !strings.HasPrefix(part, "rancher.") {
continue
}