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:
parent
9755a37fe6
commit
3cc41b0a98
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user