From 9b9254613b50f254333122d4aa9d6efaccfc911b Mon Sep 17 00:00:00 2001 From: Cedric Schieli Date: Wed, 14 Apr 2010 13:52:29 +0000 Subject: setup-disk: install a /boot/grub/menu.lst if Xen is detected --- setup-disk.in | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/setup-disk.in b/setup-disk.in index 7a485b8..1e8e758 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -56,6 +56,10 @@ is_vmware() { || grep -q VMware /proc/ide/hd*/model 2>/dev/null } +is_xen() { + [ -d /proc/xen ] +} + # Find the disk device from given partition disk_from_part() { # we need convert cciss/c0d0* cciss!c0d0*... @@ -171,8 +175,19 @@ install_mounted_root() { pax_nouderef= fi - # create an extlinux.conf - cat >"$mnt"/boot/extlinux.conf <"$mnt"/boot/grub/menu.lst <"$mnt"/boot/extlinux.conf <