Changeset 1719 for trunk


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

Location:
trunk/packages/invirt-autoinstaller
Files:
2 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
  • trunk/packages/invirt-autoinstaller/debian/changelog

    r1640 r1719  
     1invirt-autoinstaller (0.0.4) unstable; urgency=low
     2
     3  * Figure out whether the autoinstaller is running on Debian or Ubuntu,
     4    and install an appropriate kernel
     5
     6 -- Evan Broder <broder@mit.edu>  Wed, 19 Nov 2008 19:53:25 -0500
     7
    18invirt-autoinstaller (0.0.3) unstable; urgency=low
    29
Note: See TracChangeset for help on using the changeset viewer.