summaryrefslogtreecommitdiff
path: root/scripts/build/config
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/config
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/config')
-rwxr-xr-xscripts/build/config10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/build/config b/scripts/build/config
index bb15ff34d..007e1703f 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -66,6 +66,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
\t [--initramfs auto|none|live-boot|casper]\n\
\t [--initramfs-compression bzip2|gzip|lzma]\n\
\t [--initsystem sysvinit|runit|systemd|upstart|none]\n\
+\t [--image-name [NAME]\n\
\t [--interactive shell]\n\
\t [--isohybrid-options OPTION|\"OPTIONS\"]\n\
\t [--hdd-label LABEL]\n\
@@ -150,7 +151,7 @@ Local_arguments ()
mirror-bootstrap:,mirror-chroot:,mirror-chroot-security:,mirror-chroot-updates:,mirror-chroot-backports:,mirror-binary:,
mirror-binary-security:,mirror-binary-updates:,mirror-binary-backports:,mirror-debian-installer:,
archives:,archive-areas:,parent-archive-areas:,chroot-filesystem:,exposed-root:,
- gzip-options:,hooks:,interactive:,keyring-packages:,linux-flavours:,linux-packages:,
+ gzip-options:,hooks:,image-name:,interactive:,keyring-packages:,linux-flavours:,linux-packages:,
security:,updates:,backports:,binary-filesystem:,binary-images:,
apt-indices:,bootappend-install:,bootappend-live:,bootappend-live-failsafe:,bootloader:,checksums:,compression:,config:,zsync:,build-with-chroot:,
debian-installer:,debian-installer-distribution:,debian-installer-preseedfile:,debian-installer-gui:,
@@ -520,6 +521,11 @@ Local_arguments ()
shift 2
;;
+ --image-name)
+ LIVE_IMAGE_NAME="${2}"
+ shift 2
+ ;;
+
--interactive)
LB_INTERACTIVE="${2}"
shift 2
@@ -1484,7 +1490,7 @@ fi
# New style configuration
Set_configuration "config/control" "Configuration-Version" "${LIVE_CONFIGURATION_VERSION}"
echo "" >> config/control
-Set_configuration "config/control" "Image" "binary"
+Set_configuration "config/control" "Name" "${LIVE_IMAGE_NAME}"
Set_configuration "config/control" "Architecture" "${LIVE_IMAGE_ARCHITECTURE}"
Set_configuration "config/control" "Type" "${LIVE_IMAGE_TYPE}"