xcp-1.6-updates/xen-4.1.hg
changeset 23213:22ea8496051d
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@durham.ac.uk>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset: 24003:c681dd5aecf3
Backport-requested-by: Pasi Karkkainen <pasik@iki.fi>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Sample grub2 configuration file (some duplication removed) from Fedora 16
with a xen hypervisor installed
Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset: 24003:c681dd5aecf3
Backport-requested-by: Pasi Karkkainen <pasik@iki.fi>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author | Michael Young <m.a.young@durham.ac.uk> |
---|---|
date | Tue Jan 10 17:09:26 2012 +0000 (2012-01-10) |
parents | 49d73f014077 |
children | e29b7691fefc |
files | tools/pygrub/examples/fedora-16-with-xen.grub2 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/pygrub/examples/fedora-16-with-xen.grub2 Tue Jan 10 17:09:26 2012 +0000 1.3 @@ -0,0 +1,112 @@ 1.4 +# 1.5 +# DO NOT EDIT THIS FILE 1.6 +# 1.7 +# It is automatically generated by grub2-mkconfig using templates 1.8 +# from /etc/grub.d and settings from /etc/default/grub 1.9 +# 1.10 + 1.11 +### BEGIN /etc/grub.d/00_header ### 1.12 +if [ -s $prefix/grubenv ]; then 1.13 + load_env 1.14 +fi 1.15 +set default="${saved_entry}" 1.16 +if [ "${prev_saved_entry}" ]; then 1.17 + set saved_entry="${prev_saved_entry}" 1.18 + save_env saved_entry 1.19 + set prev_saved_entry= 1.20 + save_env prev_saved_entry 1.21 + set boot_once=true 1.22 +fi 1.23 + 1.24 +function savedefault { 1.25 + if [ -z "${boot_once}" ]; then 1.26 + saved_entry="${chosen}" 1.27 + save_env saved_entry 1.28 + fi 1.29 +} 1.30 + 1.31 +function load_video { 1.32 + insmod vbe 1.33 + insmod vga 1.34 + insmod video_bochs 1.35 + insmod video_cirrus 1.36 +} 1.37 + 1.38 +set timeout=5 1.39 +### END /etc/grub.d/00_header ### 1.40 + 1.41 +### BEGIN /etc/grub.d/10_linux ### 1.42 +menuentry 'Fedora Linux, with Linux 3.1.0-0.rc9.git0.0.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os { 1.43 + load_video 1.44 + set gfxpayload=keep 1.45 + insmod gzio 1.46 + insmod part_gpt 1.47 + insmod ext2 1.48 + set root='(hd0,gpt2)' 1.49 + search --no-floppy --fs-uuid --set=root f14ea58a-c2b3-4348-8091-3ab733a2f49e 1.50 + echo 'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...' 1.51 + 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 1.52 + echo 'Loading initial ramdisk ...' 1.53 + initrd /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img 1.54 +} 1.55 +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 { 1.56 + load_video 1.57 + set gfxpayload=keep 1.58 + insmod gzio 1.59 + insmod part_gpt 1.60 + insmod ext2 1.61 + set root='(hd0,gpt2)' 1.62 + search --no-floppy --fs-uuid --set=root f14ea58a-c2b3-4348-8091-3ab733a2f49e 1.63 + echo 'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...' 1.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 1.65 + echo 'Loading initial ramdisk ...' 1.66 + initrd /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img 1.67 +} 1.68 +### END /etc/grub.d/10_linux ### 1.69 + 1.70 +### BEGIN /etc/grub.d/20_linux_xen ### 1.71 +submenu "Xen 4.1" { 1.72 +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 { 1.73 + insmod part_gpt 1.74 + insmod ext2 1.75 + set root='(hd0,gpt2)' 1.76 + search --no-floppy --fs-uuid --set=root f14ea58a-c2b3-4348-8091-3ab733a2f49e 1.77 + echo 'Loading Xen 4.1 ...' 1.78 + multiboot /xen-4.1.gz placeholder 1.79 + echo 'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...' 1.80 + 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 1.81 + echo 'Loading initial ramdisk ...' 1.82 + module /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img 1.83 +} 1.84 +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 { 1.85 + insmod part_gpt 1.86 + insmod ext2 1.87 + set root='(hd0,gpt2)' 1.88 + search --no-floppy --fs-uuid --set=root f14ea58a-c2b3-4348-8091-3ab733a2f49e 1.89 + echo 'Loading Xen 4.1 ...' 1.90 + multiboot /xen-4.1.gz placeholder 1.91 + echo 'Loading Linux 3.1.0-0.rc9.git0.0.fc16.x86_64 ...' 1.92 + 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 1.93 + echo 'Loading initial ramdisk ...' 1.94 + module /initramfs-3.1.0-0.rc9.git0.0.fc16.x86_64.img 1.95 +} 1.96 +} 1.97 +### END /etc/grub.d/20_linux_xen ### 1.98 + 1.99 +### BEGIN /etc/grub.d/30_os-prober ### 1.100 +### END /etc/grub.d/30_os-prober ### 1.101 + 1.102 +### BEGIN /etc/grub.d/40_custom ### 1.103 +# This file provides an easy way to add custom menu entries. Simply type the 1.104 +# menu entries you want to add after this comment. Be careful not to change 1.105 +# the 'exec tail' line above. 1.106 +### END /etc/grub.d/40_custom ### 1.107 + 1.108 +### BEGIN /etc/grub.d/41_custom ### 1.109 +if [ -f $prefix/custom.cfg ]; then 1.110 + source $prefix/custom.cfg; 1.111 +fi 1.112 +### END /etc/grub.d/41_custom ### 1.113 + 1.114 +### BEGIN /etc/grub.d/90_persistent ### 1.115 +### END /etc/grub.d/90_persistent ###