mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
image: Use variable for referring to init
Use a variable rather than hard-coding the expected init daemon path. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
d25a591def
commit
171eceb426
@ -113,8 +113,9 @@ if [ -n "${USE_DOCKER}" ] ; then
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
# The kata rootfs image expect init and kata-agent to be installed
|
# The kata rootfs image expect init and kata-agent to be installed
|
||||||
init="${ROOTFS}/sbin/init"
|
init_path="/sbin/init"
|
||||||
[ -x "${init}" ] || [ -L ${init} ] || die "/sbin/init is not installed in ${ROOTFS}"
|
init="${ROOTFS}${init_path}"
|
||||||
|
[ -x "${init}" ] || [ -L ${init} ] || die "${init_path} is not installed in ${ROOTFS}"
|
||||||
OK "init is installed"
|
OK "init is installed"
|
||||||
[ "${AGENT_INIT}" == "yes" ] || [ -x "${ROOTFS}/usr/bin/${AGENT_BIN}" ] || \
|
[ "${AGENT_INIT}" == "yes" ] || [ -x "${ROOTFS}/usr/bin/${AGENT_BIN}" ] || \
|
||||||
die "/usr/bin/${AGENT_BIN} is not installed in ${ROOTFS}
|
die "/usr/bin/${AGENT_BIN} is not installed in ${ROOTFS}
|
||||||
|
Loading…
Reference in New Issue
Block a user