mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
rootfs: Add "${AGENT_VERSION}"/"-a" functionality
For now, the flag "-a" or relevant shell variant "${AGENT_VERSION}" hasn't been used, only defined. Using 'git checkout' command to go into requested branch. Fixes: #90 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
This commit is contained in:
parent
49e3f814bc
commit
f7f267213c
@ -246,6 +246,7 @@ OK "Pull Agent source code"
|
|||||||
|
|
||||||
info "Build agent"
|
info "Build agent"
|
||||||
pushd "${GOPATH_LOCAL}/src/${GO_AGENT_PKG}"
|
pushd "${GOPATH_LOCAL}/src/${GO_AGENT_PKG}"
|
||||||
|
[ -n "${AGENT_VERSION}" ] && git checkout "${AGENT_VERSION}" && OK "git checkout successful" || true
|
||||||
make clean
|
make clean
|
||||||
make INIT=${AGENT_INIT}
|
make INIT=${AGENT_INIT}
|
||||||
make install DESTDIR="${ROOTFS_DIR}" INIT=${AGENT_INIT}
|
make install DESTDIR="${ROOTFS_DIR}" INIT=${AGENT_INIT}
|
||||||
|
Loading…
Reference in New Issue
Block a user