Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle.bbclass: support manifest generation for artifacts #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jluebbe
Copy link
Member

@jluebbe jluebbe commented Aug 7, 2024

This is useful only in combination with the upcoming support for artifacts, but shouldn't hurt the standard case for now.

This is useful only in combination with the upcoming support for
artifacts, but shouldn't hurt the standard case for now.

Signed-off-by: Jan Luebbe <[email protected]>
# RAUC_BUNDLE_SLOTS += "containers/test"
# RAUC_SLOT_containers/test ?= "container-test-image"
# RAUC_SLOT_containers/test[fstype] = "tar.gz"
# RAUC_SLOT_containers/test[convert] = "extract;composefs"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe list existing features here first of all (i.e. tar-extract)

@@ -291,6 +297,8 @@ def write_manifest(d):
manifest.write("hooks=%s\n" % slotflags.get('hooks'))
if 'adaptive' in slotflags:
manifest.write("adaptive=%s\n" % slotflags.get('adaptive'))
if 'convert' in slotflags:
manifest.write("convert=%s\n" % slotflags.get('convert'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this require to run do_bundle as fakeroot task, too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, but that needs some more testing. This can't break existing use-cases though.

@@ -40,6 +40,12 @@
# RAUC_SLOT_rootfs ?= "core-image-minimal"
# RAUC_SLOT_rootfs[rename] ?= "rootfs.ext4"
#
# To generate an artifact image, use <repo>/<artifact> as the image name:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite happy with the syntax and the usage of 'SLOT' for artifacts, but might be the easiest solution first.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SLOT is wrong here anyway (it should be IMAGE), but changing that in a backwards compatible way will be tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants