aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorMichael Young <m.a.young@durham.ac.uk>2011-10-25 19:22:09 +0100
committerMichael Young <m.a.young@durham.ac.uk>2011-10-25 19:22:09 +0100
commit8acbbeaa4a0308c369cdc1e5d398da0702acdc7d (patch)
treeed333aaf2549636ff740334c2da3b387c162df88 /tools/pygrub
parentb23177b1772ac1fa61b90efaf2380af9b7fa3e9a (diff)
downloadxen-8acbbeaa4a0308c369cdc1e5d398da0702acdc7d.tar.gz
xen-8acbbeaa4a0308c369cdc1e5d398da0702acdc7d.tar.bz2
xen-8acbbeaa4a0308c369cdc1e5d398da0702acdc7d.zip
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>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/examples/fedora-16-with-xen.grub2112
1 files changed, 112 insertions, 0 deletions
diff --git a/tools/pygrub/examples/fedora-16-with-xen.grub2 b/tools/pygrub/examples/fedora-16-with-xen.grub2
new file mode 100644
index 0000000000..7069dd5271
--- /dev/null
+++ b/tools/pygrub/examples/fedora-16-with-xen.grub2
@@ -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 ###