Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
grub.cfg (done by update-grub and the comments is added by myself)
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-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="0"
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
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 82240af0-5930-4499-ae69-514a1f49aec4
if loadfont /share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set b0abd8fb-eb1f-44bb-bbf8-b247c26263ec
set locale_dir=($root)/grub/locale
set lang=zh
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set b0abd8fb-eb1f-44bb-bbf8-b247c26263ec
insmod png
if background_image /grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.36.1' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set b0abd8fb-eb1f-44bb-bbf8-b247c26263ec
echo 'Loading Linux 2.6.36.1 ...'
linux /vmlinuz-2.6.36.1 root=UUID=91e18c24-a5e3-4d7c-9d7e-99f76e382aa8 ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.36.1
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36.1 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set b0abd8fb-eb1f-44bb-bbf8-b247c26263ec
echo 'Loading Linux 2.6.36.1 ...'
linux /vmlinuz-2.6.36.1 root=UUID=91e18c24-a5e3-4d7c-9d7e-99f76e382aa8 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.36.1
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set b0abd8fb-eb1f-44bb-bbf8-b247c26263ec
echo 'Loading Linux 2.6.32-5-686 ...'
linux /vmlinuz-2.6.32-5-686 root=UUID=91e18c24-a5e3-4d7c-9d7e-99f76e382aa8 ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set b0abd8fb-eb1f-44bb-bbf8-b247c26263ec
echo 'Loading Linux 2.6.32-5-686 ...'
linux /vmlinuz-2.6.32-5-686 root=UUID=91e18c24-a5e3-4d7c-9d7e-99f76e382aa8 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sda10)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos10)'
search --no-floppy --fs-uuid --set 10316564-c453-4281-85d6-5a46837397a8
linux /boot/vmlinuz-2.6.32-5-686 root=UUID=10316564-c453-4281-85d6-5a46837397a8 ro quiet
initrd /boot/initrd.img-2.6.32-5-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode) (on /dev/sda10)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos10)'
search --no-floppy --fs-uuid --set 10316564-c453-4281-85d6-5a46837397a8
linux /boot/vmlinuz-2.6.32-5-686 root=UUID=10316564-c453-4281-85d6-5a46837397a8 ro single
initrd /boot/initrd.img-2.6.32-5-686
}
menuentry "linux (on /dev/sda11)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos11)'
search --no-floppy --fs-uuid --set f4deab0a-b37c-426f-bb35-f997fd2c9940
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=f4deab0a-b37c-426f-bb35-f997fd2c9940 resume=UUID=23a9b6ac-b275-4066-8223-b0ad9e0051ea
initrd (hd0,10)/boot/initrd.img
}
menuentry "failsafe (on /dev/sda11)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos11)'
search --no-floppy --fs-uuid --set f4deab0a-b37c-426f-bb35-f997fd2c9940
linux /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=f4deab0a-b37c-426f-bb35-f997fd2c9940 failsafe
initrd (hd0,10)/boot/initrd.img
}
menuentry "desktop 2.6.33.7-2 (on /dev/sda11)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos11)'
search --no-floppy --fs-uuid --set f4deab0a-b37c-426f-bb35-f997fd2c9940
linux /boot/vmlinuz-2.6.33.7-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.7-2 root=UUID=f4deab0a-b37c-426f-bb35-f997fd2c9940 resume=UUID=23a9b6ac-b275-4066-8223-b0ad9e0051ea
initrd (hd0,10)/boot/initrd-2.6.33.7-desktop-2mnb.img
}
menuentry "Desktop -- openSUSE 11.3 - 2.6.34.7-0.5 (on /dev/sda12)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos12)'
search --no-floppy --fs-uuid --set bff01541-50d4-4428-9c65-4d0cdb25cfb8
linux /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-WDC_WD10EADS-65M2B0_WD-WMAV51524747-part12 resume=/dev/disk/by-id/ata-WDC_WD10EADS-65M2B0_WD-WMAV51524747-part8 splash=silent quiet showopts
initrd /boot/initrd-2.6.34.7-0.5-desktop
}
menuentry "Failsafe -- openSUSE 11.3 - 2.6.34.7-0.5 (on /dev/sda12)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos12)'
search --no-floppy --fs-uuid --set bff01541-50d4-4428-9c65-4d0cdb25cfb8
linux /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-WDC_WD10EADS-65M2B0_WD-WMAV51524747-part12 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
initrd /boot/initrd-2.6.34.7-0.5-desktop
}
### 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.
menuentry 'Mandriva 2010 Spring' {
set root='(hd0,msdos11)'
linux /boot/vmlinuz root=/dev/sda11
initrd (hd0,msdos11)/boot/initrd.img
}
menuentry 'Mandriva Spring Chainloader' {
set root='(hd0,msdos11)'
chainloader +1
}
### 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 ###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.