wip lxc-config

This commit is contained in:
2021-05-24 00:11:58 +03:00
parent ae9c197be0
commit b76a500f2e
3 changed files with 101 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ func RootFS(in io.ReadSeeker, out io.Writer) (err error) {
case filepath.Clean(hdr.Name) == _manifestJSON:
dec := json.NewDecoder(tr)
if err := dec.Decode(&manifest); err != nil {
return fmt.Errorf("parse %s: %w", _manifestJSON, err)
return fmt.Errorf("decode %s: %w", _manifestJSON, err)
}
case strings.HasSuffix(hdr.Name, _layerSuffix):
here, err := in.Seek(0, io.SeekCurrent)