From 9a1570bc116e85b805e247d6c5c5d91ae8928b7d Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Wed, 11 Feb 2009 08:17:57 +0100
Subject: Handling kernel selection properly in example images build script.

---
 examples/cron/images.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/cron/images.sh b/examples/cron/images.sh
index 943ec44..5d891ea 100755
--- a/examples/cron/images.sh
+++ b/examples/cron/images.sh
@@ -33,20 +33,20 @@ do
 		then
 			case "${FLAVOUR}" in
 				standard|rescue|lxde-desktop|xfce-desktop)
-					KERNEL="486 686"
+					KERNEL="-p '486 686'"
 					;;
 
 				gnome-desktop|kde-desktop)
-					KERNEL="686"
+					KERNEL="-p '686'"
 					;;
 			esac
 		fi
 
 		if [ "${SOURCE}" = "enabled" ]
 		then
-			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}
+			lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --tasksel aptitude ${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 --tasksel aptitude -k ${KERNEL} --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 ${KERNEL} --source disabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
 		fi
 
 		if [ "${DISTRIBUTION}" = "sid" ]
-- 
cgit v1.0