Add some support to add files in Yaml config

You can specify a file with contents.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-03-01 18:54:58 -08:00
parent 371cd1abf6
commit 21e41fcf8c
3 changed files with 71 additions and 9 deletions

View File

@@ -131,6 +131,13 @@ func build() {
containers = append(containers, buffer)
}
// add files
buffer, err = Filesystem(m)
if err != nil {
log.Fatalf("failed to add filesystem parts: %v", err)
}
containers = append(containers, buffer)
initrd, err := containersInitrd(containers)
if err != nil {
log.Fatalf("Failed to make initrd %v", err)