debian8的/boot/grub/grub.cfg文件(300行)
#
# 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
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
else
search --no-floppy --fs-uuid --set=root b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
else
search --no-floppy --fs-uuid --set=root b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.png; then
set color_normal=white/black
set color_highlight=black/white
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 ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b4d12ad8-4e5a-4222-9d07-06a6d16d4c97' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
else
search --no-floppy --fs-uuid --set=root b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
fi
echo '载入 Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b4d12ad8-4e5a-4222-9d07-06a6d16d4c97 ro cgroup_enable=memory swapaccount=1 quiet
echo '载入初始化内存盘...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b4d12ad8-4e5a-4222-9d07-06a6d16d4c97' {
menuentry 'Debian GNU/Linux,Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-b4d12ad8-4e5a-4222-9d07-06a6d16d4c97' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
else
search --no-floppy --fs-uuid --set=root b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
fi
echo '载入 Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b4d12ad8-4e5a-4222-9d07-06a6d16d4c97 ro cgroup_enable=memory swapaccount=1 quiet
echo '载入初始化内存盘...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-b4d12ad8-4e5a-4222-9d07-06a6d16d4c97' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
else
search --no-floppy --fs-uuid --set=root b4d12ad8-4e5a-4222-9d07-06a6d16d4c97
fi
echo '载入 Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b4d12ad8-4e5a-4222-9d07-06a6d16d4c97 ro single cgroup_enable=memory swapaccount=1
echo '载入初始化内存盘...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
}
### 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 (stretch/sid) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-851e2bcc-3fdb-4f7c-ad83-5da11e999ded' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
else
search --no-floppy --fs-uuid --set=root 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=851e2bcc-3fdb-4f7c-ad83-5da11e999ded ro quiet
initrd /boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (stretch/sid) (on /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-851e2bcc-3fdb-4f7c-ad83-5da11e999ded' {
menuentry 'Debian GNU/Linux (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64--851e2bcc-3fdb-4f7c-ad83-5da11e999ded' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
else
search --no-floppy --fs-uuid --set=root 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=851e2bcc-3fdb-4f7c-ad83-5da11e999ded ro quiet
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64--851e2bcc-3fdb-4f7c-ad83-5da11e999ded' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
else
search --no-floppy --fs-uuid --set=root 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=851e2bcc-3fdb-4f7c-ad83-5da11e999ded ro quiet
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64-root=UUID=851e2bcc-3fdb-4f7c-ad83-5da11e999ded ro single-851e2bcc-3fdb-4f7c-ad83-5da11e999ded' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
else
search --no-floppy --fs-uuid --set=root 851e2bcc-3fdb-4f7c-ad83-5da11e999ded
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=851e2bcc-3fdb-4f7c-ad83-5da11e999ded ro single
initrd /boot/initrd.img-3.16.0-4-amd64
}
}
menuentry 'Debian GNU/Linux (8.2) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
else
search --no-floppy --fs-uuid --set=root 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87 ro quiet
initrd /boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (8.2) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87' {
menuentry 'Debian GNU/Linux (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64--17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
else
search --no-floppy --fs-uuid --set=root 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87 ro quiet
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux,Linux 3.16.0-4-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64--17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
else
search --no-floppy --fs-uuid --set=root 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87 ro quiet
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64-root=UUID=17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87 ro single-17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
else
search --no-floppy --fs-uuid --set=root 17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87
fi
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=17b690c7-a411-4fe4-8ebb-ea5e9ed7cc87 ro single
initrd /boot/initrd.img-3.16.0-4-amd64
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
debian6的/boot/grub/grub.cfg文件(126行)
#
# 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,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
set locale_dir=($root)/boot/grub/locale
set lang=zh
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Linx GNU/Linux, with Linux 2.6.32-5-linx-amd64' --class linx --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
echo 'Loading Linux 2.6.32-5-linx-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-linx-amd64 root=UUID=7c651ab7-ad5b-419f-ad5a-c52abacf2cbc ro linx_serial=F107dce05b32b8ca security=linx quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-linx-amd64
}
menuentry 'Linx GNU/Linux, with Linux 2.6.32-5-linx-amd64 (recovery mode)' --class linx --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
echo 'Loading Linux 2.6.32-5-linx-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-linx-amd64 root=UUID=7c651ab7-ad5b-419f-ad5a-c52abacf2cbc ro single linx_serial=F107dce05b32b8ca security=linx
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-linx-amd64
}
menuentry 'Linx GNU/Linux, with Linux 2.6.32-5-linx-amd64 (linx no root mode)' --class linx --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
echo 'Loading Linux 2.6.32-5-linx-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-linx-amd64 root=UUID=7c651ab7-ad5b-419f-ad5a-c52abacf2cbc ro linx_serial=F107dce05b32b8ca security=linx quiet linx-no-root
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-linx-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7c651ab7-ad5b-419f-ad5a-c52abacf2cbc
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### 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 ###