Skip to content

Commit

Permalink
Merge pull request #275 from hsiangkao/blobfstype
Browse files Browse the repository at this point in the history
Use OverlayBDBlobFsType label for converter if exists
  • Loading branch information
BigVan authored Apr 11, 2024
2 parents ca81c09 + da1720d commit 08d5d61
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/snapshot/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,14 @@ func (o *snapshotter) constructOverlayBDSpec(ctx context.Context, key string, wr
// 2. convert local layer.tarmeta to overlaybd
// 3. create layer's config
var opt *utils.ConvertOption
rootfs_type := o.defaultFsType
var rootfs_type string

if info.Labels[label.OverlayBDBlobFsType] != "" {
rootfs_type = info.Labels[label.OverlayBDBlobFsType]
} else {
rootfs_type = o.defaultFsType
}

if rootfs_type == "erofs" {
opt = &utils.ConvertOption{
TarMetaPath: o.overlaybdOCILayerPath(id),
Expand Down

0 comments on commit 08d5d61

Please sign in to comment.