NoPaste

grub2.cfg

von fischig

SNIPPET_TEXT:
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub-mkconfig using templates
  5. # from /etc/grub.d and settings from /etc/default/grub
  6. #
  7.  
  8. ### BEGIN /etc/grub.d/00_header ###
  9. if [ -s $prefix/grubenv ]; then
  10.   set have_grubenv=true
  11.   load_env
  12. fi
  13. if [ "${next_entry}" ] ; then
  14.    set default="${next_entry}"
  15.    set next_entry=
  16.    save_env next_entry
  17.    set boot_once=true
  18. else
  19.    set default="0"
  20. fi
  21.  
  22. if [ x"${feature_menuentry_id}" = xy ]; then
  23.   menuentry_id_option="--id"
  24. else
  25.   menuentry_id_option=""
  26. fi
  27.  
  28. export menuentry_id_option
  29.  
  30. if [ "${prev_saved_entry}" ]; then
  31.   set saved_entry="${prev_saved_entry}"
  32.   save_env saved_entry
  33.   set prev_saved_entry=
  34.   save_env prev_saved_entry
  35.   set boot_once=true
  36. fi
  37.  
  38. function savedefault {
  39.   if [ -z "${boot_once}" ]; then
  40.     saved_entry="${chosen}"
  41.     save_env saved_entry
  42.   fi
  43. }
  44. function load_video {
  45.   if [ x$feature_all_video_module = xy ]; then
  46.     insmod all_video
  47.   else
  48.     insmod efi_gop
  49.     insmod efi_uga
  50.     insmod ieee1275_fb
  51.     insmod vbe
  52.     insmod vga
  53.     insmod video_bochs
  54.     insmod video_cirrus
  55.   fi
  56. }
  57.  
  58. if [ x$feature_default_font_path = xy ] ; then
  59.    font=unicode
  60. else
  61. insmod part_msdos
  62. insmod ext2
  63. set root='hd0,msdos5'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3c384516-b024-4a42-9a55-9bbbde3f1802
  66. else
  67.   search --no-floppy --fs-uuid --set=root 3c384516-b024-4a42-9a55-9bbbde3f1802
  68. fi
  69.     font="/usr/share/grub/unicode.pf2"
  70. fi
  71.  
  72. if loadfont $font ; then
  73.   set gfxmode=auto
  74.   load_video
  75.   insmod gfxterm
  76.   set locale_dir=$prefix/locale
  77.   set lang=de_DE
  78.   insmod gettext
  79. fi
  80. terminal_output gfxterm
  81. if [ "${recordfail}" = 1 ] ; then
  82.   set timeout=30
  83. else
  84.   if [ x$feature_timeout_style = xy ] ; then
  85.     set timeout_style=menu
  86.     set timeout=5
  87.   # Fallback normal timeout code in case the timeout_style feature is
  88.  # unavailable.
  89.  else
  90.     set timeout=5
  91.   fi
  92. fi
  93. ### END /etc/grub.d/00_header ###
  94.  
  95. ### BEGIN /etc/grub.d/05_debian_theme ###
  96. set menu_color_normal=cyan/blue
  97. set menu_color_highlight=white/blue
  98. ### END /etc/grub.d/05_debian_theme ###
  99.  
  100. ### BEGIN /etc/grub.d/10_linux ###
  101. function gfxmode {
  102.         set gfxpayload="${1}"
  103. }
  104. set linux_gfx_mode=
  105. export linux_gfx_mode
  106. menuentry 'Linux-6.1.79x61.0' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.79x61.0-advanced-3c384516-b024-4a42-9a55-9bbbde3f1802' {
  107.         load_video
  108.         insmod gzio
  109.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  110.         insmod part_msdos
  111.         insmod ext2
  112.         set root='hd0,msdos5'
  113.         if [ x$feature_platform_search_hint = xy ]; then
  114.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3c384516-b024-4a42-9a55-9bbbde3f1802
  115.         else
  116.           search --no-floppy --fs-uuid --set=root 3c384516-b024-4a42-9a55-9bbbde3f1802
  117.         fi
  118.         echo    'Loading Linux 6.1.79x61.0 ...'
  119.         linux   /boot/vmlinuz-6.1.79x61.0 root=/dev/sda5 ro net.ifnames=0 quiet
  120. }
  121. menuentry '' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.79x61.0-init-sysvinit-3c384516-b024-4a42-9a55-9bbbde3f1802' {
  122.         load_video
  123.         insmod gzio
  124.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  125.         insmod part_msdos
  126.         insmod ext2
  127.         set root='hd0,msdos5'
  128.         if [ x$feature_platform_search_hint = xy ]; then
  129.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3c384516-b024-4a42-9a55-9bbbde3f1802
  130.         else
  131.           search --no-floppy --fs-uuid --set=root 3c384516-b024-4a42-9a55-9bbbde3f1802
  132.         fi
  133.         echo    'Loading Linux 6.1.79x61.0 ...'
  134.         linux   /boot/vmlinuz-6.1.79x61.0 root=/dev/sda5 ro net.ifnames=0 quiet init=/lib/sysvinit/init
  135. }
  136. menuentry 'Linux-6.1.0-23-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-23-amd64-advanced-3c384516-b024-4a42-9a55-9bbbde3f1802' {
  137.         load_video
  138.         insmod gzio
  139.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  140.         insmod part_msdos
  141.         insmod ext2
  142.         set root='hd0,msdos5'
  143.         if [ x$feature_platform_search_hint = xy ]; then
  144.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3c384516-b024-4a42-9a55-9bbbde3f1802
  145.         else
  146.           search --no-floppy --fs-uuid --set=root 3c384516-b024-4a42-9a55-9bbbde3f1802
  147.         fi
  148.         echo    'Loading Linux 6.1.0-23-amd64 ...'
  149.         linux   /boot/vmlinuz-6.1.0-23-amd64 root=UUID=3c384516-b024-4a42-9a55-9bbbde3f1802 ro net.ifnames=0 quiet
  150.         echo    'Loading initial ramdisk ...'
  151.         initrd  /boot/initrd.img-6.1.0-23-amd64
  152. }
  153. menuentry '' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-23-amd64-init-sysvinit-3c384516-b024-4a42-9a55-9bbbde3f1802' {
  154.         load_video
  155.         insmod gzio
  156.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  157.         insmod part_msdos
  158.         insmod ext2
  159.         set root='hd0,msdos5'
  160.         if [ x$feature_platform_search_hint = xy ]; then
  161.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3c384516-b024-4a42-9a55-9bbbde3f1802
  162.         else
  163.           search --no-floppy --fs-uuid --set=root 3c384516-b024-4a42-9a55-9bbbde3f1802
  164.         fi
  165.         echo    'Loading Linux 6.1.0-23-amd64 ...'
  166.         linux   /boot/vmlinuz-6.1.0-23-amd64 root=UUID=3c384516-b024-4a42-9a55-9bbbde3f1802 ro net.ifnames=0 quiet init=/lib/sysvinit/init
  167.         echo    'Loading initial ramdisk ...'
  168.         initrd  /boot/initrd.img-6.1.0-23-amd64
  169. }
  170.  
  171. ### END /etc/grub.d/10_linux ###
  172.  
  173. ### BEGIN /etc/grub.d/20_linux_xen ###
  174.  
  175. ### END /etc/grub.d/20_linux_xen ###
  176.  
  177. ### BEGIN /etc/grub.d/30_os-prober ###
  178. ### END /etc/grub.d/30_os-prober ###
  179.  
  180. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  181. ### END /etc/grub.d/30_uefi-firmware ###
  182.  
  183. ### BEGIN /etc/grub.d/40_custom ###
  184. # This file provides an easy way to add custom menu entries.  Simply type the
  185. # menu entries you want to add after this comment.  Be careful not to change
  186. # the 'exec tail' line above.
  187.  
  188. ### END /etc/grub.d/40_custom ###
  189.  
  190. ### BEGIN /etc/grub.d/41_custom ###
  191. if [ -f  ${config_directory}/custom.cfg ]; then
  192.   source ${config_directory}/custom.cfg
  193. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  194.   source $prefix/custom.cfg
  195. fi
  196. ### END /etc/grub.d/41_custom ###
  197.  

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN