Skip to content

Commit

Permalink
Merge pull request #155 from kinvolk/schu/semaphore-updates
Browse files Browse the repository at this point in the history
semaphore updates
  • Loading branch information
schu committed Oct 22, 2018
2 parents 68e787d + e1bf046 commit 8f8e0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions semaphore.sh
Expand Up @@ -13,8 +13,8 @@ set -o pipefail
readonly kernel_versions=("4.4.129" "4.9.96" "4.14.37")
readonly rkt_version="1.30.0"

if [[ ! -f "./rkt/rkt" ]] \
|| [[ ! "$(./rkt/rkt version | awk '/rkt Version/{print $3}')" == "${rkt_version}" ]]; then
if [[ ! -f "./rkt/rkt" ]] ||
[[ ! "$(./rkt/rkt version | awk '/rkt Version/{print $3}')" == "${rkt_version}" ]]; then

curl -LsS "https://github.com/coreos/rkt/releases/download/v${rkt_version}/rkt-v${rkt_version}.tar.gz" \
-o rkt.tgz
Expand All @@ -30,7 +30,7 @@ sudo ./rkt/rkt image fetch --insecure-options=image "coreos.com/rkt/stage1-kvm:$
for kernel_version in "${kernel_versions[@]}"; do
kernel_api_header_dir="/lib/modules/${kernel_version}-kinvolk-v1/include:/lib/modules/${kernel_version}-kinvolk-v1/source/include/arch/x86/include"
rm -f ./rkt-uuid
sudo timeout --foreground --kill-after=10 5m \
sudo timeout --foreground --kill-after=10 10m \
./rkt/rkt \
run --interactive \
--uuid-file-save=./rkt-uuid \
Expand Down

0 comments on commit 8f8e0b6

Please sign in to comment.