summaryrefslogtreecommitdiff
path: root/scripts/build/binary_tar
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-04-28 07:32:16 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2015-04-28 07:58:16 +0200
commitb1a8ae2e7c7e94a8d0bfc9f866aa20da5427ba9f (patch)
treed6d3b63e940665b1588197a68f0e9c114ec72e47 /scripts/build/binary_tar
parent58bdabe1391f37a9a9e441ce42ef48bd11944843 (diff)
downloadvyos-live-build-b1a8ae2e7c7e94a8d0bfc9f866aa20da5427ba9f.tar.gz
vyos-live-build-b1a8ae2e7c7e94a8d0bfc9f866aa20da5427ba9f.zip
Correcting wrong tar command for tarball images, thanks to Yadickson Soto <yadickson@gmail.com> (Closes: #780627).
Diffstat (limited to 'scripts/build/binary_tar')
-rwxr-xr-xscripts/build/binary_tar3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build/binary_tar b/scripts/build/binary_tar
index a0707ba16..042d0eb07 100755
--- a/scripts/build/binary_tar
+++ b/scripts/build/binary_tar
@@ -46,7 +46,8 @@ Create_lockfile .lock
# Remove old binary
rm -f ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar.bz2 ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar.gz ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar.lz ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar
-tar cf ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar.tar ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.
+tar cf ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar.tar binary
+
case "${LB_COMPRESSION}" in
bzip2)
bzip2 ${BZIP2_OPTIONS} ${LIVE_IMAGE_NAME}-${LB_ARCHITECTURES}.tar.tar