From bc07e7923f3ff70c41bd2459031e6e028c14c4c9 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 28 Aug 2014 11:16:50 -0700 Subject: [PATCH] MT#8813 linux-headers-2.6-amd64 package doesn't exist in Debian/jessie Change-Id: I9170080fd4a20129d94ae953c1814855da52a56e --- deployment.sh | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/deployment.sh b/deployment.sh index 90d03bc..be58970 100755 --- a/deployment.sh +++ b/deployment.sh @@ -984,9 +984,6 @@ locales-all firmware-bnx2 firmware-bnx2x -# required for dkms -linux-headers-2.6-amd64 - # support acpi (d-i installs them as well) acpi acpid acpi-support-base @@ -1002,6 +999,26 @@ openssh-server #os-prober EOF +# MT#8813 The linux-headers-2.6-amd64 package doesn't exist in jessie and newer +case "$DEBIAN_RELEASE" in + lenny|squeeze|wheezy) + echo "Adding linux-headers-2.6-amd64 package (because we're installing ${DEBIAN_RELEASE})" + logit "Adding linux-headers-2.6-amd64 package (because we're installing ${DEBIAN_RELEASE})" + cat >> /etc/debootstrap/packages << EOF +# required for dkms +linux-headers-2.6-amd64 +EOF + ;; + *) + echo "Adding linux-headers-amd64 package (because we're installing ${DEBIAN_RELEASE})" + logit "Adding linux-headers-amd64 package (because we're installing ${DEBIAN_RELEASE})" + cat >> /etc/debootstrap/packages << EOF +# required for dkms +linux-headers-amd64 +EOF + ;; +esac + if "$LVM" ; then cat >> /etc/debootstrap/packages << EOF # support LVM