trustfence: fix path creation and calling on copy_public_key()

In the context of the class, we must use ${IMAGE_ROOTFS} instead of ${D}.
Change the calling of the function to POSTPROCESS (after the rootfs has
been created) instead of POSTINSTALL (after the packages have been
installed).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2023-08-24 11:48:56 +02:00
parent c85d064bdd
commit 388a3d13d5
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ copy_public_key() {
exit 1 exit 1
fi fi
# Copy the public key to the rootfs # Copy the public key to the rootfs
install -d ${D}${sysconfdir}/ssl/certs install -d ${IMAGE_ROOTFS}${sysconfdir}/ssl/certs
cp -f "${PUBLIC_KEY}" "${IMAGE_ROOTFS}${sysconfdir}/ssl/certs/key.pub" cp -f "${PUBLIC_KEY}" "${IMAGE_ROOTFS}${sysconfdir}/ssl/certs/key.pub"
} }
ROOTFS_POSTINSTALL_COMMAND:append = " copy_public_key;" ROOTFS_POSTPROCESS_COMMAND:append = " copy_public_key;"
python () { python () {
import binascii import binascii