kubernetes: 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.

The remaining WORDIR references are to a secondary git repository
with artifacts and should be safe.

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 01a6b4771f
commit 2aa6da625d

View File

@ -112,14 +112,14 @@ do_install() {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -d "${D}${BIN_PREFIX}${base_bindir}" install -d "${D}${BIN_PREFIX}${base_bindir}"
install -m 755 "${WORKDIR}/k8s-init" "${D}${BIN_PREFIX}${base_bindir}" install -m 755 "${UNPACKDIR}/k8s-init" "${D}${BIN_PREFIX}${base_bindir}"
install -d ${D}${sysconfdir}/sysctl.d install -d ${D}${sysconfdir}/sysctl.d
install -m 0644 "${WORKDIR}/99-kubernetes.conf" "${D}${sysconfdir}/sysctl.d" install -m 0644 "${UNPACKDIR}/99-kubernetes.conf" "${D}${sysconfdir}/sysctl.d"
fi fi
} }
CNI_NETWORKING_FILES ?= "${WORKDIR}/cni-containerd-net.conflist" CNI_NETWORKING_FILES ?= "${UNPACKDIR}/cni-containerd-net.conflist"
PACKAGES =+ "kubeadm kubectl kubelet kube-proxy ${PN}-misc ${PN}-host" PACKAGES =+ "kubeadm kubectl kubelet kube-proxy ${PN}-misc ${PN}-host"