composefs deploy: Store cfs signature in .ostree.cfs.sig file
authorAlexander Larsson <alexl@redhat.com>
Mon, 29 May 2023 10:25:55 +0000 (12:25 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 31 May 2023 08:57:37 +0000 (10:57 +0200)
commit3fcebe454ed78df378b656af2013e43c648dbe46
treed56c8653461a7ff13262493545c66f2901743ab9
parentc988ff79387b5b61a1134c5f0d91010b0a280fd6
composefs deploy: Store cfs signature in .ostree.cfs.sig file

In many cases, such as when using osbuild, we are not preparing the final
deployment but rather a rootfs tree that will eventually be copied to the
final location. In that case we don't want to apply the signature directly
but when the deployment is copied in place.

To make this situateion workable we also write the signature to a file
next to the composefs image file. Then whatever mechanism that does
the final copy can apply the signature.
src/libostree/ostree-sysroot-deploy.c