From 70e96a75ecc2b0a8fab66ff28c5bb69ed4b72eb8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Jul 2016 11:32:14 +0200 Subject: config: add Initrd to known fields --- config/config.go | 1 + vm/vm.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index ccd3df615..dca74edb0 100644 --- a/config/config.go +++ b/config/config.go @@ -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 { diff --git a/vm/vm.go b/vm/vm.go index 49bec49a6..d81ed066d 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -33,7 +33,7 @@ type Config struct { Index int Workdir string Bin string - Initrd string + Initrd string Kernel string Cmdline string Image string -- cgit mrf-deployment