release: only set LIBEXECDIR for kata-shim

It is the only repo that requires LIBEXECDIR. Do not set it
for other repos, otherwise the runtime repo will mistakenly install
kata-netmon in a wrong path.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao
2018-09-29 10:06:51 +08:00
parent 4672721efa
commit 71c693ccac

View File

@@ -128,12 +128,16 @@ install_kata_components() {
libexecdir="libexec"
if [ "$p" == "shim" ]; then
libexecdir="/${destdir}/${prefix}/libexec/"
fi
echo "Install"
make PREFIX="${prefix}" \
DESTDIR="${destdir}" \
LIBEXECDIR="${libexecdir}" \
install
else
echo "Install"
make PREFIX="${prefix}" \
DESTDIR="${destdir}" \
install
fi
popd >>/dev/null
done
sed -i -e '/^initrd =/d' "${destdir}/${prefix}/share/defaults/${project}/configuration.toml"