Ignore:
Timestamp:
May 2, 2009, 11:46:02 PM (16 years ago)
Author:
broder
Message:

In invirt-autoinstaller:

  • Add a new version of our patches to work with the current Ubuntu update-grub, instead of trying to use the indomU variable (which still excludes kernels from showing up in the menu.lst).
File:
1 edited

Legend:

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

    r2333 r2335  
    6969
    7070#
    71 # If this is a Jaunty machine, the fix from LP #291256 caused our
    72 # patch to update-grub to not work, so let's use that mechanism
    73 # instead.
    74 #
    75 # Since we haven't run update-grub yet, we need to generate the
    76 # skeleton of a Debian menu.lst so that update-grub extracts the
    77 # options correctly
    78 #
    79 cat >/boot/grub/menu.lst <<EOF
    80 ### BEGIN AUTOMAGIC KERNELS LIST
    81 ## ## Start Default Options ##
    82 # indomU=true
    83 ## ## End Default Options ##
    84 ### END DEBIAN AUTOMAGIC KERNELS LIST
    85 EOF
    86 sed -i -e 's/indomU=detect/indomU=true/' /boot/grub/menu.lst
    87 
    88 #
    8971# Regenerate automagic kernels list
    9072#
Note: See TracChangeset for help on using the changeset viewer.