mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
config: Add 'ucode' to the kernel schema
This optional option will allow users to specify a CPU microcode cpio archive to be prepended to the initrd file. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
f816553d2f
commit
b4704b8ba1
@ -36,6 +36,7 @@ type KernelConfig struct {
|
||||
Cmdline string `yaml:"cmdline,omitempty" json:"cmdline,omitempty"`
|
||||
Binary string `yaml:"binary,omitempty" json:"binary,omitempty"`
|
||||
Tar *string `yaml:"tar,omitempty" json:"tar,omitempty"`
|
||||
UCode *string `yaml:"ucode,omitempty" json:"ucode,omitempty"`
|
||||
|
||||
ref *reference.Spec
|
||||
}
|
||||
@ -289,6 +290,9 @@ func AppendConfig(m0, m1 Moby) (Moby, error) {
|
||||
if m1.Kernel.Tar != nil {
|
||||
moby.Kernel.Tar = m1.Kernel.Tar
|
||||
}
|
||||
if m1.Kernel.UCode != nil {
|
||||
moby.Kernel.UCode = m1.Kernel.UCode
|
||||
}
|
||||
if m1.Kernel.ref != nil {
|
||||
moby.Kernel.ref = m1.Kernel.ref
|
||||
}
|
||||
|
@ -13,7 +13,8 @@ var schema = string(`
|
||||
"image": {"type": "string"},
|
||||
"cmdline": {"type": "string"},
|
||||
"binary": {"type": "string"},
|
||||
"tar": {"type": "string"}
|
||||
"tar": {"type": "string"},
|
||||
"ucode": {"type": "string"}
|
||||
}
|
||||
},
|
||||
"file": {
|
||||
|
Loading…
Reference in New Issue
Block a user