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
rootfs: confidential: Install coco-guest-components #9022
Merged
fidencio
merged 4 commits into
kata-containers:main
from
fidencio:topic/add-guest-components-to-the-confidential-image-and-initrd
Feb 5, 2024
Merged
rootfs: confidential: Install coco-guest-components #9022
fidencio
merged 4 commits into
kata-containers:main
from
fidencio:topic/add-guest-components-to-the-confidential-image-and-initrd
Feb 5, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fidencio
added
ok-to-test
merge-to-main
PRs relating to merging CCv0 content to main
labels
Feb 5, 2024
fidencio
force-pushed
the
topic/add-guest-components-to-the-confidential-image-and-initrd
branch
from
February 5, 2024 11:24
53e4dea
to
a21c27b
Compare
tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh
Outdated
Show resolved
Hide resolved
fidencio
force-pushed
the
topic/add-guest-components-to-the-confidential-image-and-initrd
branch
from
February 5, 2024 11:47
a21c27b
to
d617d1b
Compare
stevenhorsman
approved these changes
Feb 5, 2024
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.
LGTM. Thanks
tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh
Outdated
Show resolved
Hide resolved
As DESTDIR was not being passed, we've been installing the final binaries in a container path that was not exposed to the host, leading to creating an empty tarball with the guest components. Now, theoretically, guest-components should respect a PREFIX passed, but that's not the case and we're manually adding "/usr/local/bin" to the passed DESTDIR. Here's the result of the tarball: ```bash ⋊> kata-containers ≡ tar tf build/kata-static-coco-guest-components.tar.xz ./ ./usr/ ./usr/local/ ./usr/local/bin/ ./usr/local/bin/confidential-data-hub ./usr/local/bin/attestation-agent ./usr/local/bin/api-server-rest ``` Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
fidencio
force-pushed
the
topic/add-guest-components-to-the-confidential-image-and-initrd
branch
2 times, most recently
from
February 5, 2024 13:08
3bb188b
to
562afc7
Compare
We need to pass this to the container where the rootfs is built, so it can actually be unpacked inside the rootfs. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This will make our lives easier to figure out whether the components are being installed or not. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Let's install the coco-guest-components into the confidential rootfs image and initrd. Fixes: kata-containers#9021 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
fidencio
force-pushed
the
topic/add-guest-components-to-the-confidential-image-and-initrd
branch
from
February 5, 2024 13:41
562afc7
to
27e7974
Compare
katacontainersbot
added
size/medium
Average sized task
and removed
size/small
Small and simple task
labels
Feb 5, 2024
/test |
danmihai1
approved these changes
Feb 5, 2024
ryansavino
reviewed
Feb 6, 2024
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.
Sorry, meant to get to this sooner. I looked over the changes and LGTM.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
merge-to-main
PRs relating to merging CCv0 content to main
ok-to-test
size/medium
Average sized task
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Let's install the coco-guest-components into the confidential rootfs image and initrd.
Fixes: #9021