NoPaste

Gibbies /boot/grub/grub.cfg

von SGibbi
SNIPPET_DESC:
Final, durchgetestet
SNIPPET_CREATION_TIME:
17.10.2021 14:43:35
SNIPPET_PRUNE_TIME:
Unendlich

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. terminal_input console
  59. terminal_output console
  60. if [ "${recordfail}" = 1 ] ; then
  61.   set timeout=30
  62. else
  63.   if [ x$feature_timeout_style = xy ] ; then
  64.     set timeout_style=menu
  65.     set timeout=5
  66.   # Fallback normal timeout code in case the timeout_style feature is
  67.  # unavailable.
  68.  else
  69.     set timeout=5
  70.   fi
  71. fi
  72. ### END /etc/grub.d/00_header ###
  73.  
  74. ### BEGIN /etc/grub.d/05_debian_theme ###
  75. set menu_color_normal=cyan/blue
  76. set menu_color_highlight=white/blue
  77. ### END /etc/grub.d/05_debian_theme ###
  78.  
  79. ### BEGIN /etc/grub.d/06_dark_theme ###
  80. set menu_color_normal=white/black
  81. set menu_color_highlight=yellow/black
  82. set color_normal=white/black
  83. set color_highlight=yellow/black
  84. background_image
  85. ### END /etc/grub.d/06_dark_theme ###
  86.  
  87. ### BEGIN /etc/grub.d/10_linux ###
  88. function gfxmode {
  89.         set gfxpayload="${1}"
  90. }
  91. set linux_gfx_mode=text
  92. export linux_gfx_mode
  93. menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-85e05fa1-b3f2-4b25-ae05-5be30f43f5d0' {
  94.         gfxmode $linux_gfx_mode
  95.         insmod gzio
  96.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  97.         insmod part_msdos
  98.         insmod ext2
  99.         set root='hd0,msdos2'
  100.         if [ x$feature_platform_search_hint = xy ]; then
  101.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  102.         else
  103.           search --no-floppy --fs-uuid --set=root 85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  104.         fi
  105.         echo    'Loading Linux 5.10.0-9-amd64 ...'
  106.         linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=85e05fa1-b3f2-4b25-ae05-5be30f43f5d0 ro nomodeset quiet
  107.         echo    'Loading initial ramdisk ...'
  108.         initrd  /boot/initrd.img-5.10.0-9-amd64
  109. }
  110. submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-85e05fa1-b3f2-4b25-ae05-5be30f43f5d0' {
  111.         menuentry 'Debian GNU/Linux, with Linux 5.10.0-9-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-9-amd64-advanced-85e05fa1-b3f2-4b25-ae05-5be30f43f5d0' {
  112.                 gfxmode $linux_gfx_mode
  113.                 insmod gzio
  114.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  115.                 insmod part_msdos
  116.                 insmod ext2
  117.                 set root='hd0,msdos2'
  118.                 if [ x$feature_platform_search_hint = xy ]; then
  119.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  120.                 else
  121.                   search --no-floppy --fs-uuid --set=root 85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  122.                 fi
  123.                 echo    'Loading Linux 5.10.0-9-amd64 ...'
  124.                 linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=85e05fa1-b3f2-4b25-ae05-5be30f43f5d0 ro nomodeset quiet
  125.                 echo    'Loading initial ramdisk ...'
  126.                 initrd  /boot/initrd.img-5.10.0-9-amd64
  127.         }
  128.         menuentry 'Debian GNU/Linux, with Linux 5.10.0-9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-9-amd64-recovery-85e05fa1-b3f2-4b25-ae05-5be30f43f5d0' {
  129.                 gfxmode $linux_gfx_mode
  130.                 insmod gzio
  131.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  132.                 insmod part_msdos
  133.                 insmod ext2
  134.                 set root='hd0,msdos2'
  135.                 if [ x$feature_platform_search_hint = xy ]; then
  136.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  137.                 else
  138.                   search --no-floppy --fs-uuid --set=root 85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  139.                 fi
  140.                 echo    'Loading Linux 5.10.0-9-amd64 ...'
  141.                 linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=85e05fa1-b3f2-4b25-ae05-5be30f43f5d0 ro single nomodeset
  142.                 echo    'Loading initial ramdisk ...'
  143.                 initrd  /boot/initrd.img-5.10.0-9-amd64
  144.         }
  145.         menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-8-amd64-advanced-85e05fa1-b3f2-4b25-ae05-5be30f43f5d0' {
  146.                 gfxmode $linux_gfx_mode
  147.                 insmod gzio
  148.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  149.                 insmod part_msdos
  150.                 insmod ext2
  151.                 set root='hd0,msdos2'
  152.                 if [ x$feature_platform_search_hint = xy ]; then
  153.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  154.                 else
  155.                   search --no-floppy --fs-uuid --set=root 85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  156.                 fi
  157.                 echo    'Loading Linux 5.10.0-8-amd64 ...'
  158.                 linux   /boot/vmlinuz-5.10.0-8-amd64 root=UUID=85e05fa1-b3f2-4b25-ae05-5be30f43f5d0 ro nomodeset quiet
  159.                 echo    'Loading initial ramdisk ...'
  160.                 initrd  /boot/initrd.img-5.10.0-8-amd64
  161.         }
  162.         menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-8-amd64-recovery-85e05fa1-b3f2-4b25-ae05-5be30f43f5d0' {
  163.                 gfxmode $linux_gfx_mode
  164.                 insmod gzio
  165.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  166.                 insmod part_msdos
  167.                 insmod ext2
  168.                 set root='hd0,msdos2'
  169.                 if [ x$feature_platform_search_hint = xy ]; then
  170.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  171.                 else
  172.                   search --no-floppy --fs-uuid --set=root 85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  173.                 fi
  174.                 echo    'Loading Linux 5.10.0-8-amd64 ...'
  175.                 linux   /boot/vmlinuz-5.10.0-8-amd64 root=UUID=85e05fa1-b3f2-4b25-ae05-5be30f43f5d0 ro single nomodeset
  176.                 echo    'Loading initial ramdisk ...'
  177.                 initrd  /boot/initrd.img-5.10.0-8-amd64
  178.         }
  179. }
  180.  
  181. ### END /etc/grub.d/10_linux ###
  182.  
  183. ### BEGIN /etc/grub.d/20_linux_xen ###
  184.  
  185. ### END /etc/grub.d/20_linux_xen ###
  186.  
  187. ### BEGIN /etc/grub.d/20_memtest86 ###
  188. menuentry "Memory test (memtest86)" {
  189.         linux16 /boot/memtest86.bin
  190. }
  191. ### END /etc/grub.d/20_memtest86 ###
  192.  
  193. ### BEGIN /etc/grub.d/20_memtest86+ ###
  194. ### END /etc/grub.d/20_memtest86+ ###
  195.  
  196. ### BEGIN /etc/grub.d/22_invaders ###
  197. menuentry "GRUB Invaders" {
  198.         insmod part_msdos
  199.         insmod ext2
  200.         set root='hd0,msdos2'
  201.         if [ x$feature_platform_search_hint = xy ]; then
  202.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  203.         else
  204.           search --no-floppy --fs-uuid --set=root 85e05fa1-b3f2-4b25-ae05-5be30f43f5d0
  205.         fi
  206.         multiboot       /boot/invaders.exec
  207. }
  208. ### END /etc/grub.d/22_invaders ###
  209.  
  210. ### BEGIN /etc/grub.d/30_os-prober ###
  211. ### END /etc/grub.d/30_os-prober ###
  212.  
  213. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  214. ### END /etc/grub.d/30_uefi-firmware ###
  215.  
  216. ### BEGIN /etc/grub.d/40_custom ###
  217. # This file provides an easy way to add custom menu entries.  Simply type the
  218. # menu entries you want to add after this comment.  Be careful not to change
  219. # the 'exec tail' line above.
  220. # This is Gibbies /etc/grub.d/40_custom
  221. menuentry 'Boot from Floppy' {root=(fd0); chainloader +1}
  222. menuentry 'Shutdown' {halt}
  223. menuentry 'Reboot' {reboot}
  224. ### END /etc/grub.d/40_custom ###
  225.  
  226. ### BEGIN /etc/grub.d/41_custom ###
  227. if [ -f  ${config_directory}/custom.cfg ]; then
  228.   source ${config_directory}/custom.cfg
  229. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  230.   source $prefix/custom.cfg;
  231. fi
  232. ### END /etc/grub.d/41_custom ###
  233.  
  234. ### BEGIN /etc/grub.d/60_grub-imageboot ###
  235. ### END /etc/grub.d/60_grub-imageboot ###

Quellcode

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