From: Otavio Salvador <[EMAIL PROTECTED]>

We need to use a different set of packages related to kernel and for
that 'LIVE_KERNEL_PACKAGES' variable can be use to force a package or
a set of packages to be used.
---

 src/config              |    3 +++
 src/scripts/14chroot.sh |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/config b/src/config
index 0913312..4eecb36 100644
--- a/src/config
+++ b/src/config
@@ -45,6 +45,9 @@ #LIVE_INCLUDE_IMAGE=""
 # Kernel flavour               (Default: auto-detected)
 #LIVE_KERNEL=""
 
+# Kernel packages       (Default: auto-detected)
+#LIVE_KERNEL_PACKAGES=""
+
 # Desktop package manifest     (Default: empty)
 #LIVE_MANIFEST=""
 
diff --git a/src/scripts/14chroot.sh b/src/scripts/14chroot.sh
index d403ed6..766a2af 100644
--- a/src/scripts/14chroot.sh
+++ b/src/scripts/14chroot.sh
@@ -64,8 +64,13 @@ Chroot ()
                # Configure linux-image
                Patch_linux apply
 
+               if [ -z "${LIVE_KERNEL_PACKAGES}" ]
+               then
+                       LIVE_KERNEL_PACKAGES="linux-image-2.6-${LIVE_KERNEL} 
squashfs-modules-2.6-${LIVE_KERNEL} unionfs-modules-2.6-${LIVE_KERNEL}"
+               fi
+
                # Install linux-image, modules and casper
-               Chroot_exec "apt-get install --yes --force-yes 
linux-image-2.6-${LIVE_KERNEL} squashfs-modules-2.6-${LIVE_KERNEL} 
unionfs-modules-2.6-${LIVE_KERNEL} casper"
+               Chroot_exec "apt-get install --yes --force-yes 
${LIVE_KERNEL_PACKAGES} casper"
 
                # Deconfigure linux-image
                Patch_linux deapply

_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to