# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1211564341 25200
# Node ID 10f6cc2ec9940971f636bfd10b9f518c4c5d1487
# Parent 3233a070377270931b4cc1d790b6782fee17d1b6
[TEST] Make RHEL 5 XenFV guest grub conf use hda.
It looks like qemu on RHEL emulates an ide drive, not a scsi drive.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 3233a0703772 -r 10f6cc2ec994 suites/libvirt-cim/images/xmt-makefv.sh
--- a/suites/libvirt-cim/images/xmt-makefv.sh Fri May 23 18:14:28 2008 +0800
+++ b/suites/libvirt-cim/images/xmt-makefv.sh Fri May 23 10:39:01 2008 -0700
@@ -14,6 +14,8 @@
PARTED="parted -s"
TMPMOUNT=/tmp/cimtest_image_temp
SIZE=16
+
+IS_RHEL=`cat /etc/issue | awk 'BEGIN { FS = "Red Hat Enterprise Linux
Server"} ; { print $2 }'`
die() {
echo "FAILED: $i" >&2
@@ -110,10 +112,19 @@
timeout 1
title Test Environment
root (hd0,0)
+EOF
+
+if [ -z $IS_RHEL]; then
+ cat >>${root}/grub/grub.conf <<EOF
+ kernel /vmlinuz root=/dev/hda1
+ initrd /initrd
+EOF
+else
+ cat >>${root}/grub/grub.conf <<EOF
kernel /vmlinuz root=/dev/sda1
initrd /initrd
EOF
-
+fi
}
ramdisk=$1
Show replies by date
KR> # HG changeset patch
KR> # User Kaitlin Rupert <karupert(a)us.ibm.com>
KR> # Date 1211564341 25200
KR> # Node ID 10f6cc2ec9940971f636bfd10b9f518c4c5d1487
KR> # Parent 3233a070377270931b4cc1d790b6782fee17d1b6
KR> [TEST] Make RHEL 5 XenFV guest grub conf use hda.
KR> It looks like qemu on RHEL emulates an ide drive, not a scsi drive.
Maybe it would be better to check the qemu version? You'll see this
on SLES10 SP1 and others.
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms(a)us.ibm.com