Skip to content

Commit

Permalink
Limited use of HEAD to image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 13, 2018
1 parent d57cbf9 commit 5254693
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devsus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ KVER=4.9
here=`pwd`
outmnt=$(mktemp -d -p $here)
inmnt=$(mktemp -d -p $here)
branch=`git symbolic-ref --short HEAD`
commit=`git log --format=%h -1`

outdev=/dev/loop6
indev=/dev/loop7
Expand Down Expand Up @@ -143,6 +141,9 @@ then
install -D -m 644 linux-$KVER/vmlinux.kpart devsus-rootfs/boot/vmlinux.kpart
tar -c devsus-rootfs | gzip -1 > devsus-rootfs.tar.gz
else
branch=`git symbolic-ref --short HEAD`
commit=`git log --format=%h -1`

[ ! -f dl/devsus-rootfs.tar.gz ] && wget -O dl/devsus-rootfs.tar.gz https://github.com/dimkr/devsus/releases/download/$branch-$commit/devsus-rootfs.tar.gz

trap cleanup INT TERM EXIT
Expand Down

0 comments on commit 5254693

Please sign in to comment.