container-host-config: convert remaining WORKDIR references to UNPACKDIR

While the WORKDIR references seem to work, they may not continue
to work. We switch to using UNPACKDIR which is where the SRC_URI
referenced elements / files will be placed by the fetcher.

We also explicitly set S to point to the UNPACKDIR to avoid a
build warning.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2024-05-28 13:17:03 +00:00
parent 27db959787
commit d190fb4a13

View File

@ -11,12 +11,14 @@ SRC_URI = " \
file://policy.json \
"
S="${UNPACKDIR}"
do_install() {
install -d ${D}/${sysconfdir}/containers
install ${WORKDIR}/storage.conf ${D}/${sysconfdir}/containers/storage.conf
install ${WORKDIR}/registries.conf ${D}/${sysconfdir}/containers/registries.conf
install ${WORKDIR}/policy.json ${D}/${sysconfdir}/containers/policy.json
install ${UNPACKDIR}/storage.conf ${D}/${sysconfdir}/containers/storage.conf
install ${UNPACKDIR}/registries.conf ${D}/${sysconfdir}/containers/registries.conf
install ${UNPACKDIR}/policy.json ${D}/${sysconfdir}/containers/policy.json
}
BBCLASSEXTEND = "native nativesdk"