Ignore:
Timestamp:
Nov 19, 2008, 8:05:15 PM (16 years ago)
Author:
broder
Message:

Install the right kernel on both Debian and Ubuntu - both 32 and 64 bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/97-setup-grub

    r1637 r1719  
    2323#
    2424# Install the xen kernel.  linux-image-xen is in ubuntu,
    25 # linux-image-xen-amd64 in debian.
    26 installDebianPackage ${prefix} linux-image-xen
    27 installDebianPackage ${prefix} linux-image-xen-amd64
     25# linux-image-xen-{amd64,686} in debian.
     26#
     27
     28# First we need to figure out whether we're dealing with Debian or
     29# Ubuntu. Unfortunately, Debian doesn't install lsb_release by
     30# default, and its lsb-release package Recommends a bunch of stuff
     31installDebianPackage ${prefix} -o="Apt::Install-Recommends=false" lsb-release
     32if [ "Debian" = "$(chroot ${prefix} lsb_release -si)" ]; then
     33    # One of these exists in the amd64 repo, and one of them exists in
     34    # the i386 repo. The one that doesn't exist won't get installed
     35    installDebianPackage ${prefix} linux-image-xen-amd64
     36    installDebianPackage ${prefix} linux-image-xen-686
     37else
     38    installDebianPackage ${prefix} linux-image-xen
     39fi
    2840
    2941installDebianPackage ${prefix} grub
Note: See TracChangeset for help on using the changeset viewer.