mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 17:20:29 +00:00
Check if a layer is provided in the manifest
This commit is contained in:
@@ -163,10 +163,13 @@ func (*SimpleDocker) ExtractRootfs(opts compiler.CompilerBackendOptions, keepPer
|
||||
layers_sha := []string{}
|
||||
|
||||
for _, data := range manifestData {
|
||||
|
||||
for _, l := range data.Layers {
|
||||
if strings.Contains(l, "layer.tar") {
|
||||
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export, err := capi.CreateExport(rootfs)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user