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-devel

[Xen-devel] Re: [PATCH 6 of 6] example grub2 configuration file

To: M A Young <m.a.young@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH 6 of 6] example grub2 configuration file
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Thu, 20 Oct 2011 09:29:28 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 20 Oct 2011 01:32:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1110200010470.15667@xxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <alpine.DEB.2.00.1110200010470.15667@xxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2011-10-20 at 00:11 +0100, M A Young wrote:
> 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>

> 
> --- /dev/null   2011-10-19 21:56:02.284851951 +0100
> +++ b/tools/pygrub/examples/fedora-16-with-xen.grub2    2011-10-19
> 20:52:02.000000000 +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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>