-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add full support for capabilities in create_appliance.py script #23
Comments
The tar-out and tar-in commands of guestfish >= 1.32 have the a xattr:true option, but do not have the equivalent of "--xattrs-include='*'" =>this is not needed for tar-out: archive will store the capabilities, but extracting with tar-in will not restore the capabilities without it. Hence guestfish >= 1.32 do not solve our problem :-( |
bug filed to libguestfs: https://bugzilla.redhat.com/show_bug.cgi?id=1384241 |
So unless we wait for the new version of libguestfs-tools, a workaround can be:
|
btw: |
@SimonDelamare |
This is what we did before Kameleon starts using these bootstraps. So I guess the answer is yes. |
Rrrr... guestfish is weird :-( :
So we can As a result, |
if not using guestmount, but the guestfish API to capture capabilities:
We could possibly use the Python API instead of bash: http://libguestfs.org/guestfs-python.3.html |
FYI This however does not fix our issue for the tar-in which needs the xattrs-include option and is not provided in guestfish 1.32.7 |
What is the status of this? Is it fixed? |
Not really:
So it remains to us to export with the environment a list of files which need special capabilities, so that they can be reset when reimporting it. |
Despite #22 resolution, full support for capabilities is still not available. For instance, when building a virtualbox/debian8.yaml image, the second step is bootstrap/prepare_appliance/create_appliance, which runs the following command:
This call to create_appliance.py converts rootfs.tar.xz to the vmdk starting image, but looses capabilities on the way
Patch from #22 do not cover this code path, the faulty command is probably:
/usr/bin/xzcat ~/g5k/repo/environments-recipes/build/jessie-x64-min/rootfs.tar.xz | /usr/bin/guestfish -a ~/g5k/repo/environments-recipes/build/jessie-x64-min/.W8ZVA7 -m /dev/sda1:/ tar-in - /
The text was updated successfully, but these errors were encountered: