diff --git a/bolt/src/artifact-manifest.cjs b/bolt/src/artifact-manifest.cjs index c567f48..687179d 100644 --- a/bolt/src/artifact-manifest.cjs +++ b/bolt/src/artifact-manifest.cjs @@ -17,26 +17,8 @@ * limitations under the License. */ -const assert = require('node:assert'); - // see https://github.com/rdkcentral/oci-package-spec/blob/main/format.md function makeArtifactManifest(spec) { - let imageTitle; - - switch (spec.type) { - case 'application': - imageTitle = 'package.tar.gz'; - break; - case 'runtime': - imageTitle = 'runtime.tar.gz'; - break; - case 'base': - imageTitle = 'base.tar.gz'; - break; - } - - assert(imageTitle); - return { "schemaVersion": 2, "mediaType": "application/vnd.oci.image.manifest.v1+json", @@ -51,12 +33,9 @@ function makeArtifactManifest(spec) { }, "layers": [ { - "mediaType": "application/vnd.rdk.package.content.layer.v1.tar+gzip", + "mediaType": "application/vnd.rdk.package.content.layer.v1.erofs+dmverity", "digest": spec.contentDigest, "size": spec.contentSize, - "annotations": { - "org.opencontainers.image.title": imageTitle - } } ] }; diff --git a/bolt/src/pack.cjs b/bolt/src/pack.cjs index 9758931..85e7d39 100644 --- a/bolt/src/pack.cjs +++ b/bolt/src/pack.cjs @@ -98,7 +98,6 @@ function packInternal(content, config, output, options) { const configInfo = builder.importObject(config); const manifest = makeArtifactManifest({ - type: config.packageType, configSize: configInfo.size, configDigest: configInfo.digest, contentSize: contentInfo.size, @@ -106,7 +105,6 @@ function packInternal(content, config, output, options) { }); Object.assign(manifest.layers[0], { - mediaType: "application/vnd.rdk.package.content.layer.v1.erofs+dmverity", annotations: { "org.rdk.package.content.dmverity.roothash": rootHash, "org.rdk.package.content.dmverity.offset": "" + erofsTmpFileStat.size,