config: add Initrd to known fields

This commit is contained in:
Dmitry Vyukov 2016-07-20 11:32:14 +02:00
parent 9b7b5cffbe
commit 70e96a75ec
2 changed files with 2 additions and 1 deletions

View File

@ -258,6 +258,7 @@ func checkUnknownFields(data []byte) (string, error) {
"Enable_Syscalls",
"Disable_Syscalls",
"Suppressions",
"Initrd",
}
f := make(map[string]interface{})
if err := json.Unmarshal(data, &f); err != nil {

View File

@ -33,7 +33,7 @@ type Config struct {
Index int
Workdir string
Bin string
Initrd string
Initrd string
Kernel string
Cmdline string
Image string