WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] pygrub: example grub2 configuration file

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] pygrub: example grub2 configuration file (fedora-16-with-xen.grub2)
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 26 Oct 2011 20:55:14 +0100
Delivery-date: Wed, 26 Oct 2011 12:56:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Michael Young <m.a.young@xxxxxxxxxxxx>
# Date 1319566929 -3600
# Node ID c681dd5aecf3da3c6fd0e4d8a760a9cd18617033
# Parent  979bc34d0ad0369e42c70f66a39952e4b6b9b613
pygrub: example grub2 configuration file (fedora-16-with-xen.grub2)

Sample grub2 configuration file (some duplication removed) from Fedora 16
with a xen hypervisor installed

Signed-off-by: Michael Young <m.a.young@xxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 979bc34d0ad0 -r c681dd5aecf3 
tools/pygrub/examples/fedora-16-with-xen.grub2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/pygrub/examples/fedora-16-with-xen.grub2    Tue Oct 25 19:22:09 
2011 +0100
@@ -0,0 +1,112 @@
+#
+# DO NOT EDIT THIS FILE
+#
+# It is automatically generated by grub2-mkconfig using templates
+# from /etc/grub.d and settings from /etc/default/grub
+#
+
+### BEGIN /etc/grub.d/00_header ###
+if [ -s $prefix/grubenv ]; then
+  load_env
+fi
+set default="${saved_entry}"
+if [ "${prev_saved_entry}" ]; then
+  set saved_entry="${prev_saved_entry}"
+  save_env saved_entry
+  set prev_saved_entry=
+  save_env prev_saved_entry
+  set boot_once=true
+fi
+
+function savedefault {
+  if [ -z "${boot_once}" ]; then
+    saved_entry="${chosen}"
+    save_env saved_entry
+  fi
+}
+
+function load_video {
+  insmod vbe
+  insmod vga
+  insmod video_bochs
+  insmod video_cirrus
+}
+
+set timeout=5
+### END /etc/grub.d/00_header ###
+
+### BEGIN /etc/grub.d/10_linux ###
+menuentry 'Fedora Linux, with Linux 3.1.0-0.rc9.git0.0.fc16.x86_64' --class 
fedora --class gnu-linux --class gnu --class os {
+       load_video
+       set gfxpayload=keep
+       insmod gzio
+       insmod part_gpt
+       insmod ext2
+       set root='(hd0,gpt2)'
+       search --no-floppy --fs-uuid --set=root 
f14ea58a-c2b3-4348-8091-3ab733a2f49e
+       echo    'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...'
+       linux   /vmlinuz-3.1.0-0.rc9.git0.0.fc16.x86_64 
root=/dev/mapper/VolGroup-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=VolGroup/lv_swap 
quiet SYSFONT=latarcyrheb-sun16 rhgb rd.lvm.lv=VolGroup/lv_root rd.luks=0  
KEYTABLE=uk LANG=en_US.UTF-8 
+       echo    'Loading initial ramdisk ...'
+       initrd  /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img
+}
+menuentry 'Fedora Linux, with Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 (recovery 
mode)' --class fedora --class gnu-linux --class gnu --class os {
+       load_video
+       set gfxpayload=keep
+       insmod gzio
+       insmod part_gpt
+       insmod ext2
+       set root='(hd0,gpt2)'
+       search --no-floppy --fs-uuid --set=root 
f14ea58a-c2b3-4348-8091-3ab733a2f49e
+       echo    'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...'
+       linux   /vmlinuz-3.1.0-0.rc9.git0.0.fc16.x86_64 
root=/dev/mapper/VolGroup-lv_root ro single rd.md=0 rd.dm=0 
rd.lvm.lv=VolGroup/lv_swap quiet SYSFONT=latarcyrheb-sun16 rhgb 
rd.lvm.lv=VolGroup/lv_root rd.luks=0  KEYTABLE=uk LANG=en_US.UTF-8
+       echo    'Loading initial ramdisk ...'
+       initrd  /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img
+}
+### END /etc/grub.d/10_linux ###
+
+### BEGIN /etc/grub.d/20_linux_xen ###
+submenu "Xen 4.1" {
+menuentry 'Fedora Linux, with Xen 4.1 and Linux 
3.1.0-0.rc9.git0.0.fc16.x86_64' --class fedora --class gnu-linux --class gnu 
--class os --class xen {
+       insmod part_gpt
+       insmod ext2
+       set root='(hd0,gpt2)'
+       search --no-floppy --fs-uuid --set=root 
f14ea58a-c2b3-4348-8091-3ab733a2f49e
+       echo    'Loading Xen 4.1 ...'
+       multiboot       /xen-4.1.gz placeholder  
+       echo    'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...'
+       module  /vmlinuz-3.1.0-0.rc9.git0.0.fc16.x86_64 placeholder 
root=/dev/mapper/VolGroup-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=VolGroup/lv_swap 
quiet SYSFONT=latarcyrheb-sun16 rhgb rd.lvm.lv=VolGroup/lv_root rd.luks=0  
KEYTABLE=uk LANG=en_US.UTF-8 
+       echo    'Loading initial ramdisk ...'
+       module  /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img
+}
+menuentry 'Fedora Linux, with Xen 4.1 and Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 
(recovery mode)' --class fedora --class gnu-linux --class gnu --class os 
--class xen {
+       insmod part_gpt
+       insmod ext2
+       set root='(hd0,gpt2)'
+       search --no-floppy --fs-uuid --set=root 
f14ea58a-c2b3-4348-8091-3ab733a2f49e
+       echo    'Loading Xen 4.1 ...'
+       multiboot       /xen-4.1.gz placeholder 
+       echo    'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...'
+       module  /vmlinuz-3.1.0-0.rc9.git0.0.fc16.x86_64 placeholder 
root=/dev/mapper/VolGroup-lv_root ro single rd.md=0 rd.dm=0 
rd.lvm.lv=VolGroup/lv_swap quiet SYSFONT=latarcyrheb-sun16 rhgb 
rd.lvm.lv=VolGroup/lv_root rd.luks=0  KEYTABLE=uk LANG=en_US.UTF-8
+       echo    'Loading initial ramdisk ...'
+       module  /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img
+}
+}
+### END /etc/grub.d/20_linux_xen ###
+
+### BEGIN /etc/grub.d/30_os-prober ###
+### END /etc/grub.d/30_os-prober ###
+
+### BEGIN /etc/grub.d/40_custom ###
+# This file provides an easy way to add custom menu entries.  Simply type the
+# menu entries you want to add after this comment.  Be careful not to change
+# the 'exec tail' line above.
+### END /etc/grub.d/40_custom ###
+
+### BEGIN /etc/grub.d/41_custom ###
+if [ -f  $prefix/custom.cfg ]; then
+  source $prefix/custom.cfg;
+fi
+### END /etc/grub.d/41_custom ###
+
+### BEGIN /etc/grub.d/90_persistent ###
+### END /etc/grub.d/90_persistent ###

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] pygrub: example grub2 configuration file (fedora-16-with-xen.grub2), Xen patchbot-unstable <=