Skip to content

Support more generic media types for disk image layer selection #12

Description

@coderabbitai

Follow-up: Support more generic media types for disk image layer selection

Currently, the fallback layer selection in get_single_layer() (in src/fls/oci/manifest.rs) only matches layers whose mediaType starts with application/vnd.automotive.disk.

To allow OCI artifacts to be reused in other areas (e.g. embedded systems beyond automotive), the selection logic should also consider more generic media types such as application/vnd.embedded.disk or similar conventions.

Suggested improvement

Expand the media type matching in the fallback layer selection to include additional generic disk image media types, for example:

  • application/vnd.embedded.disk
  • Other relevant generic media types as appropriate

This would make fls more broadly applicable beyond automotive use cases.


Raised by @mangelajo in #9: #9 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions