summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-08 22:00:39 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:42 +0100
commitb540927007698439ea3371cf8f061a8f35eb74a5 (patch)
tree30bd66112c86a8ab2fe308743221204464346acc /examples
parent431a8208a3b5606d172e4fdef493023a59ba5a11 (diff)
downloadvyos-live-build-b540927007698439ea3371cf8f061a8f35eb74a5.tar.gz
vyos-live-build-b540927007698439ea3371cf8f061a8f35eb74a5.zip
Updating image example build script.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/cron/images.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh
index 2c821b7e9..6d4c2ea26 100755
--- a/examples/cron/images.sh
+++ b/examples/cron/images.sh
@@ -29,11 +29,21 @@ do
rm -rf cache/packages*
rm -rf cache/stages_rootfs
+ case "${FLAVOUR}" in
+ standard|rescue|lxde-desktop|xfce-desktop)
+ KERNEL="486 686"
+ ;;
+
+ gnome-desktop|kde-desktop)
+ KERNEL="686"
+ ;;
+ esac
+
if [ "${SOURCE}" = "enabled" ]
then
- lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
+ lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --tasksel aptitude -k ${KERNEL} --source enabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
else
- lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source disabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
+ lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --tasksel aptitude -k ${KERNEL} --source disabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
fi
if [ "${DISTRIBUTION}" = "sid" ]