Ignore:
Timestamp:
May 2, 2009, 9:34:40 PM (16 years ago)
Author:
broder
Message:

Update the setup-grub hook in the autoinstaller to work with pv_ops
Ubuntu kernels.

Location:
trunk/packages/invirt-autoinstaller
Files:
2 edited

Legend:

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

    r2171 r2325  
    2525# linux-image-xen-{amd64,686} in debian.
    2626#
    27 installDebianPackage ${prefix} linux-image-xen-amd64
    28 installDebianPackage ${prefix} linux-image-xen-686
    29 installDebianPackage ${prefix} linux-image-xen
     27
     28installDebianPackage ${prefix} lsb-release
     29
     30if [ "$(chroot ${prefix} lsb_release -is)" = "Ubuntu" ]; then
     31    if dpkg --compare-versions "$(chroot ${prefix} lsb_release -rs)" ge 8.10; then
     32        installDebianPackage ${prefix} linux-image-virtual
     33    else
     34        installDebianPackage ${prefix} linux-image-xen
     35    fi
     36else
     37    installDebianPackage ${prefix} linux-image-xen-amd64
     38    installDebianPackage ${prefix} linux-image-xen-686
     39fi
    3040
    3141installDebianPackage ${prefix} grub
     
    4959
    5060#
     61# If this is a pv_ops kernel, then we need to make some more changes
     62# to make the console work right
     63#
     64if [ "$(chroot ${prefix} lsb_release -is)" = "Ubuntu" ] && \
     65    dpkg --compare-versions "$(chroot ${prefix} lsb_release -rs)" ge 8.10; then
     66    sed -i -e 's/xvc0/hvc0/' /etc/event.d/tty1
     67    sed -i -e 's/console=ttyS0[^ ]*/console=hvc0/' /boot/grub/menu.lst
     68fi
     69
     70#
    5171# Regenerate automagic kernels list
    5272#
  • trunk/packages/invirt-autoinstaller/debian/changelog

    r2174 r2325  
     1invirt-autoinstaller (0.0.20) unstable; urgency=low
     2
     3  * Update the setup-grub hook to work with pv_ops Ubuntu kernels.
     4
     5 -- Evan Broder <broder@mit.edu>  Sat, 02 May 2009 21:33:44 -0400
     6
    17invirt-autoinstaller (0.0.19) unstable; urgency=low
    28
Note: See TracChangeset for help on using the changeset viewer.