-
Notifications
You must be signed in to change notification settings - Fork 90
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
base: master
Are you sure you want to change the base?
Conversation
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" |
There was a problem hiding this comment.
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')) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This is useful only in combination with the upcoming support for artifacts, but shouldn't hurt the standard case for now.