aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-06-13 14:58:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-13 15:19:51 +0000
commit6a81545dad5d9a3ad22bfc7f69e5f39464fa6f8d (patch)
treeeaa37e00efa6a508cfdc9257bcdc922a7ddb4f95 /scripts
parentbe4ba17fbbb89e56fd6f358953f13682247c1a42 (diff)
downloadaports-6a81545dad5d9a3ad22bfc7f69e5f39464fa6f8d.tar.bz2
aports-6a81545dad5d9a3ad22bfc7f69e5f39464fa6f8d.tar.xz
scripts/mkimg.netboot.sh: create symlink to directory
create a symlink to latest netboot release. This is to make it easy to create urls without version numbers like: http://dl-cdn.alpinelinux.org/alpine/latest-release/releases/x86_64/netboot
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkimg.netboot.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mkimg.netboot.sh b/scripts/mkimg.netboot.sh
index 12dd2a6bdd..513fcb8c2e 100755
--- a/scripts/mkimg.netboot.sh
+++ b/scripts/mkimg.netboot.sh
@@ -1,6 +1,7 @@
create_image_netboot() {
- rm -rf "${OUTDIR}"/netboot-$RELEASE
+ rm -rf "${OUTDIR}"/netboot-$RELEASE "${OUTDIR}"/netboot
cp -aL "${DESTDIR}"/boot "${OUTDIR}"/netboot-$RELEASE
+ ln -s netboot-$RELEASE "${OUTDIR}"/netboot
tar -C "${DESTDIR}" -chzf ${OUTDIR}/${output_filename} boot/
}