source: trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/patches/common.diff @ 2441

Last change on this file since 2441 was 2335, checked in by broder, 16 years ago

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 size: 1.4 KB
  • /usr/sbin/update-grub

    old new  
    911911                is_xen=
    912912        fi
    913913
    914         if [ ! "$in_domU" ] && [ "$is_xen" ]; then
    915           # skip xen kernels
    916           continue
    917         elif [ "$in_domU" ] && ! [ "$is_xen" ]; then
    918           # skip non-xen kernels
    919           continue
    920         fi
    921914        kern="/boot/$kern"
    922915        newerKernels=""
    923916        for i in $sortedKernels ; do
  • /usr/sbin/update-grub

    old new  
    14191419                is_xen=
    14201420        fi
    14211421
    1422     if [ "$indomU" = "false" ] && [ "$is_xen" ]; then
    1423         # We aren't running in a Xen domU, skip xen kernels
    1424         echo "Ignoring Xen kernel on non-Xen host: $kern"
    1425         continue
    1426     elif [ "$indomU" = "true" ] && ! [ "$is_xen" ]; then
    1427         # We are running in a Xen domU, skip non-xen kernels
    1428         echo "Ignoring non-Xen Kernel on Xen domU host: $kern"
    1429         continue
    1430     fi
    1431    
    14321422    kern="/boot/$kern"
    14331423        newerKernels=""
    14341424        for i in $sortedKernels ; do
  • /boot/grub/menu.lst

    old new  
    5959## e.g. kopt=root=/dev/hda1 ro
    6060##      kopt_2_6_8=root=/dev/hdc1 ro
    6161##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    62 # kopt=root=/dev/hda1 ro
     62# kopt=root=/dev/hda1 ro console=ttyS0,9600,8n1
    6363
    6464## default grub root device
    6565## e.g. groot=(hd0,0)
Note: See TracBrowser for help on using the repository browser.