Since standard OCI images use aufs metadata instead.

Fixes: bf7e2b01a93f ("erofs-utils: mkfs: add OCI registry support")
Signed-off-by: Gao Xiang <hsiang...@linux.alibaba.com>
---
 lib/remotes/oci.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/remotes/oci.c b/lib/remotes/oci.c
index 0fb8c1f..c8feb98 100644
--- a/lib/remotes/oci.c
+++ b/lib/remotes/oci.c
@@ -781,6 +781,9 @@ static int ocierofs_extract_layer(struct erofs_oci *oci, 
struct erofs_importer *
        int ret;
 
        stream = (struct erofs_oci_stream) {
+               .tarfile = {
+                       .aufs = true,
+               },
                .digest = digest,
                .blobfd = erofs_tmpfile(),
        };
@@ -830,9 +833,7 @@ static int ocierofs_extract_layer(struct erofs_oci *oci, 
struct erofs_importer *
                goto out;
        }
 
-       memset(&stream.tarfile, 0, sizeof(stream.tarfile));
        init_list_head(&stream.tarfile.global.xattrs);
-
        ret = erofs_iostream_open(&stream.tarfile.ios, stream.blobfd,
                                  EROFS_IOS_DECODER_GZIP);
        if (ret) {
-- 
2.43.5


Reply via email to