summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-03-12 18:33:22 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:05 +0100
commit2e6b3c3d52cd9bfc2124e7e09c3d6c823a0d1f66 (patch)
tree523c6b065883b356beda4677fd5955685be1ff56 /examples
parent972fd911e9a45ad232f2c496d189edff5ad6c692 (diff)
downloadvyos-live-build-2e6b3c3d52cd9bfc2124e7e09c3d6c823a0d1f66.tar.gz
vyos-live-build-2e6b3c3d52cd9bfc2124e7e09c3d6c823a0d1f66.zip
Updating autobuild script for squeeze alpha1 images.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/cron/images.sh32
1 files changed, 19 insertions, 13 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh
index b875e86f2..8abdf39e3 100755
--- a/examples/cron/images.sh
+++ b/examples/cron/images.sh
@@ -68,7 +68,7 @@ Set_defaults ()
DEBIAN_INSTALLER_GUI="false"
LIVE_INSTALLER="16"
- LIVE_INITRAMFS="1.173.3-1"
+ LIVE_INITRAMFS="1.173.4-1"
mkdir -p config/binary_local-udebs
cd config/binary_local-udebs
@@ -126,11 +126,10 @@ do
--mirror-chroot-security ${MIRROR_SECURITY} \
${PACKAGES} \
--packages-lists ${FLAVOUR} \
- --source ${SOURCE} \
--tasksel ${TASKSEL} ${KERNEL}
# TEMPORARY HACK until memtest86+ maintainers fixes his package
- if [ ${FLAVOUR} = rescue ]
+ if [ ${DISTRIBUTION} = "squeeze" ] && [ ${FLAVOUR} = rescue ]
then
lh config --memtest none
fi
@@ -141,12 +140,6 @@ do
mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.list
mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.packages
- if [ "${SOURCE}" = "true" ]
- then
- mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz
- mv source.list debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz.list
- fi
-
if [ "${DISTRIBUTION}" = "lenny" ]
then
lh clean --binary
@@ -162,12 +155,25 @@ do
rm -rf cache/stages_rootfs
lh config --binary-images net
- lh build 2>&1 | tee debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}-net.tar.gz.log
+ lh build 2>&1 | tee debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.log
- mv binary-net.tar.gz debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}-net.tar.gz
- mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}-net.tar.gz.list
- mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}-net.tar.gz.packages
+ mv binary-net.tar.gz debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz
+ mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.list
+ mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.packages
mv binary/*/filesystem.squashfs debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.squashfs
+ for memtest in tftpboot/debian-live/${ARCHITECTURE}/memtest*; do cp -f ${memtest} debian-live-${DISTRIBUTION}-${ARCHITECTURE}.$(basename ${memtest}); done || true
+ for kernel in tftpboot/debian-live/${ARCHITECTURE}/vmlinuz*; do cp -f ${kernel} debian-live-${DISTRIBUTION}-${ARCHITECTURE}.$(basename ${kernel}); done
+ for initrd in tftpboot/debian-live/${ARCHITECTURE}/initrd*; do cp ${initrd} debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.$(basename ${initrd}); done
+
+ if [ "${SOURCE}" = "true" ]
+ then
+ lh config --source true
+
+ lh source 2>&1 | tee debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz.log
+
+ mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz
+ mv source.list debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz.list
+ fi
done
done