aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-07-20 11:32:14 +0200
committerDmitry Vyukov <dvyukov@google.com>2016-07-20 11:32:14 +0200
commit70e96a75ecc2b0a8fab66ff28c5bb69ed4b72eb8 (patch)
tree290b787c915332a41d6d3c1a986999060069d5b3
parent9b7b5cffbe1ca399cc106b0a8a248da86694852d (diff)
config: add Initrd to known fields
-rw-r--r--config/config.go1
-rw-r--r--vm/vm.go2
2 files changed, 2 insertions, 1 deletions
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