summaryrefslogtreecommitdiff
path: root/scripts/build/binary_netboot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-19 12:21:09 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:03 +0200
commit2a9486d108408006959bb77cac37f9eb0612728a (patch)
tree187ea8854beb1e93e3493d603ba24d9cafa15d06 /scripts/build/binary_netboot
parent3cb7d3163af3f3e01bb974a57e71ee68ed1166a9 (diff)
downloadvyos-live-build-2a9486d108408006959bb77cac37f9eb0612728a.tar.gz
vyos-live-build-2a9486d108408006959bb77cac37f9eb0612728a.zip
Using image name from configuration to name binary output files.
Diffstat (limited to 'scripts/build/binary_netboot')
-rwxr-xr-xscripts/build/binary_netboot12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/build/binary_netboot b/scripts/build/binary_netboot
index 6b80bee27..a9b8e52e7 100755
--- a/scripts/build/binary_netboot
+++ b/scripts/build/binary_netboot
@@ -119,7 +119,7 @@ then
fi
# Remove old binary
-rm -f binary.netboot.tar binary.netboot.tar.gz binary.netboot.tar.bz2 binary.netboot.tar.xz binary.netboot.tar.xz
+rm -f ${LIVE_IMAGE_NAME}.netboot.tar ${LIVE_IMAGE_NAME}.netboot.tar.gz ${LIVE_IMAGE_NAME}.netboot.tar.bz2 ${LIVE_IMAGE_NAME}.netboot.tar.xz ${LIVE_IMAGE_NAME}.netboot.tar.xz
# Creating image file
ROOT_DIR=$(basename ${LB_NET_ROOT_PATH})
@@ -142,23 +142,23 @@ cd binary.tmp
mkdir tftpboot/live
mv */live/vmlinuz* */live/initrd* tftpboot/live
-tar cf ../binary.netboot.tar *
+tar cf ../${LIVE_IMAGE_NAME}.netboot.tar *
case "${LB_COMPRESSION}" in
bzip2)
- bzip2 ${BZIP2_OPTIONS} ../binary.netboot.tar
+ bzip2 ${BZIP2_OPTIONS} ../${LIVE_IMAGE_NAME}.netboot.tar
;;
gzip)
- gzip ${GZIP_OPTIONS} ../binary.netboot.tar
+ gzip ${GZIP_OPTIONS} ../${LIVE_IMAGE_NAME}.netboot.tar
;;
lzip)
- lzip ${LZIP_OPTIONS} ../binary.netboot.tar
+ lzip ${LZIP_OPTIONS} ../${LIVE_IMAGE_NAME}.netboot.tar
;;
xz)
- xz ${XZ_OPTIONS} ../binary.netboot.tar
+ xz ${XZ_OPTIONS} ../${LIVE_IMAGE_NAME}.netboot.tar
;;
none)