summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-22 17:57:28 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:33 +0100
commiteff5887e920515abad9a75aef340b0d25708a326 (patch)
tree158b1c55dd8c925a29e95ad674d5bf6cdbc0e88a /examples
parent2670fe71d11a9c0066a89f1c0c7912cb968e5a20 (diff)
downloadvyos-live-build-eff5887e920515abad9a75aef340b0d25708a326.tar.gz
vyos-live-build-eff5887e920515abad9a75aef340b0d25708a326.zip
Handling sourceless builds in images.sh.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/cron/images.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh
index 672ff49c2..ad5cf744a 100755
--- a/examples/cron/images.sh
+++ b/examples/cron/images.sh
@@ -22,7 +22,12 @@ do
rm -rf cache/packages*
rm -rf cache/stages_rootfs
- lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
+ if [ "${1}" != "nosource" ]
+ then
+ lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
+ else
+ lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source disabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
+ fi
if [ "${DISTRIBUTION}" = "sid" ]
then
@@ -39,8 +44,12 @@ do
mv binary.iso debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso
mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.list
mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.packages
- mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz
- mv source.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.list
+
+ if [ "${1}" != "nosource" ]
+ then
+ mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz
+ mv source.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.list
+ fi
lh clean --binary
lh config -b usb-hdd