X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/0075cd9598b004555699090b2b71bc5efbcbc320..c259e83ac33dad3706a232f04cc1661a99007d83:/common/usr/lib/xen-tools/debian.d/93-setup-grub diff --git a/common/usr/lib/xen-tools/debian.d/93-setup-grub b/common/usr/lib/xen-tools/debian.d/93-setup-grub index ce54ad6..d3ba6fd 100755 --- a/common/usr/lib/xen-tools/debian.d/93-setup-grub +++ b/common/usr/lib/xen-tools/debian.d/93-setup-grub @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # This script sets up the ParaVM to use pygrub # @@ -63,32 +63,36 @@ done # if [ "$(chroot ${prefix} lsb_release -is)" = "Ubuntu" ] && \ dpkg --compare-versions "$(chroot ${prefix} lsb_release -rs)" ge 8.10; then - sed -i -e 's/xvc0/hvc0/' /etc/event.d/tty1 - sed -i -e 's/console=ttyS0[^ ]*/console=hvc0/' /boot/grub/menu.lst + sed -i -e 's/xvc0/hvc0/' ${prefix}/etc/event.d/tty1 + sed -i -e 's/console=ttyS0[^ ]*/console=hvc0/' ${prefix}/boot/grub/menu.lst fi # -# If this is a Jaunty machine, the fix from LP #291256 caused our -# patch to update-grub to not work, so let's use that mechanism -# instead. +# Since pv_ops kernels force block device names to xvda, xvdb, etc, +# the default root value of root=/dev/hda won't actually help us. # -# Since we haven't run update-grub yet, we need to generate the -# skeleton of a Debian menu.lst so that update-grub extracts the -# options correctly +# To work around that, find a UUID for the swap and root partitions +# and use that in the grub config (and also in /etc/fstab) # -cat >/boot/grub/menu.lst <