summaryrefslogtreecommitdiff
path: root/scripts/build/source_iso
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-19 12:41:02 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:03 +0200
commitef1ab80c70a8a492f87bbb76dffac9c10811a24d (patch)
tree0d6937f2aea46afa3e49986712c1dfdf3fada483 /scripts/build/source_iso
parent36d36414d89fe376030c40f59a2f8d5b3229316d (diff)
downloadvyos-live-build-ef1ab80c70a8a492f87bbb76dffac9c10811a24d.tar.gz
vyos-live-build-ef1ab80c70a8a492f87bbb76dffac9c10811a24d.zip
Using image name from configuration to name source output files.
Diffstat (limited to 'scripts/build/source_iso')
-rwxr-xr-xscripts/build/source_iso7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/source_iso b/scripts/build/source_iso
index 81b4f5cef..d55797e5b 100755
--- a/scripts/build/source_iso
+++ b/scripts/build/source_iso
@@ -59,9 +59,9 @@ Check_package chroot/usr/bin/xorriso xorriso
Install_package
# Remove old iso image
-if [ -f source.iso ]
+if [ -f ${LIVE_IMAGE_NAME}-source.iso ]
then
- rm -f source.iso
+ rm -f ${LIVE_IMAGE_NAME}-source.iso
fi
# Handle xorriso generic options
@@ -108,7 +108,8 @@ EOF
Chroot chroot "sh source.sh"
# Move image
-mv chroot/source chroot/source.iso ./
+mv chroot/source ./
+mv chroot/source.iso ${LIVE_IMAGE_NAME}-source.iso
rm -f chroot/source.sh
# Removing depends