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

FIX RAUC Certificate Paths #135

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

vasilvas99
Copy link
Contributor

@vasilvas99 vasilvas99 commented Jul 26, 2023

Issue

As of rauc 1.10 the recipe for building and compiling the rauc binary, expects the rauc ca.cert.pem file to be in it's ${WORKDIR} (i.e. provided as SRC_URI).

This is different than before where it required an absolute system path.

Solution

Ideally we would like to preserve the current directory structure (keep all certificates in the same place) AND keep them only as a part of the Leda Distro Quickstart image, since they are here only to serve as examples and users might forget to add their own certificates if they become part of meta-leda (in cases when they are building their own distros).

That's why we use the new variable provided by the rauc 1.10 recipe RAUC_KEYRING_URI, adding to our local.conf the single new line RAUC_KEYRING_URI = "file://${TOPDIR}/../examples/example-ca/ca.cert.pem". This copies the cert file to the recipe's workdir + the file:// fetcher recreates the original directory structure, thus preserving everything to be the same as before.

Integration test results:

image
eclipse-leda-tests.zip

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

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

LGTM

@stlachev stlachev merged commit fb261c7 into eclipse-leda:main Jul 26, 2023
4 checks passed
@stlachev stlachev deleted the fix-rauc-certs branch July 26, 2023 06:36
@vasilvas99 vasilvas99 changed the title FIX RAUC Certifacte Paths FIX RAUC Certificate Paths Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants