mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-07 19:14:10 +00:00
rootfs: Always strip the agent binary
Let's always do this, regardless of where the agent is coming from. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
f23451de01
commit
eb7a33ee71
@ -680,7 +680,6 @@ EOF
|
|||||||
make clean
|
make clean
|
||||||
make LIBC=${LIBC} INIT=${AGENT_INIT} SECCOMP=${SECCOMP} AGENT_POLICY=${AGENT_POLICY}
|
make LIBC=${LIBC} INIT=${AGENT_INIT} SECCOMP=${SECCOMP} AGENT_POLICY=${AGENT_POLICY}
|
||||||
make install DESTDIR="${ROOTFS_DIR}" LIBC=${LIBC} INIT=${AGENT_INIT}
|
make install DESTDIR="${ROOTFS_DIR}" LIBC=${LIBC} INIT=${AGENT_INIT}
|
||||||
${stripping_tool} ${ROOTFS_DIR}/usr/bin/kata-agent
|
|
||||||
if [ "${SECCOMP}" == "yes" ]; then
|
if [ "${SECCOMP}" == "yes" ]; then
|
||||||
rm -rf "${libseccomp_install_dir}" "${gperf_install_dir}"
|
rm -rf "${libseccomp_install_dir}" "${gperf_install_dir}"
|
||||||
fi
|
fi
|
||||||
@ -693,6 +692,8 @@ EOF
|
|||||||
tar xvJpf ${AGENT_TARBALL} -C ${ROOTFS_DIR}
|
tar xvJpf ${AGENT_TARBALL} -C ${ROOTFS_DIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
${stripping_tool} ${ROOTFS_DIR}/usr/bin/kata-agent
|
||||||
|
|
||||||
[ -x "${AGENT_DEST}" ] || die "${AGENT_DEST} is not installed in ${ROOTFS_DIR}"
|
[ -x "${AGENT_DEST}" ] || die "${AGENT_DEST} is not installed in ${ROOTFS_DIR}"
|
||||||
OK "Agent installed"
|
OK "Agent installed"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user