mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-11 16:26:23 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user