NoPaste

Gibbies /boot/grub/grub.sfg

von SGibbi
SNIPPET_DESC:
modified by hand - may need re editing
SNIPPET_CREATION_TIME:
27.10.2021 02:58:54
SNIPPET_PRUNE_TIME:
Unendlich

SNIPPET_TEXT:
  1. #
  2. # This is manually edited file by stefan-gibbert@gmx.de
  3. # to use it, replase /boot/grub/grub.cfg with this
  4. # be asure to keep a backup of your own in safe place before
  5. #
  6. # This will be overvritten by next Kernel Update.
  7. # keep a backup. You may need to modify by hand
  8. #
  9.  
  10. ### BEGIN /etc/grub.d/00_header ###
  11. if [ -s $prefix/grubenv ]; then
  12.   set have_grubenv=true
  13.   load_env
  14. fi
  15. if [ "${next_entry}" ] ; then
  16.    set default="${next_entry}"
  17.    set next_entry=
  18.    save_env next_entry
  19.    set boot_once=true
  20. else
  21.    set default="0"
  22. fi
  23.  
  24. if [ x"${feature_menuentry_id}" = xy ]; then
  25.   menuentry_id_option="--id"
  26. else
  27.   menuentry_id_option=""
  28. fi
  29.  
  30. export menuentry_id_option
  31.  
  32. if [ "${prev_saved_entry}" ]; then
  33.   set saved_entry="${prev_saved_entry}"
  34.   save_env saved_entry
  35.   set prev_saved_entry=
  36.   save_env prev_saved_entry
  37.   set boot_once=true
  38. fi
  39.  
  40. function savedefault {
  41.   if [ -z "${boot_once}" ]; then
  42.     saved_entry="${chosen}"
  43.     save_env saved_entry
  44.   fi
  45. }
  46. function load_video {
  47.   if [ x$feature_all_video_module = xy ]; then
  48.     insmod all_video
  49.   else
  50.     insmod efi_gop
  51.     insmod efi_uga
  52.     insmod ieee1275_fb
  53.     insmod vbe
  54.     insmod vga
  55.     insmod video_bochs
  56.     insmod video_cirrus
  57.   fi
  58. }
  59.  
  60. terminal_input console
  61. terminal_output console
  62. if [ "${recordfail}" = 1 ] ; then
  63.   set timeout=30
  64. else
  65.   if [ x$feature_timeout_style = xy ] ; then
  66.     set timeout_style=menu
  67.     set timeout=5
  68.   # Fallback normal timeout code in case the timeout_style feature is
  69.  # unavailable.
  70.  else
  71.     set timeout=5
  72.   fi
  73. fi
  74. ### END /etc/grub.d/00_header ###
  75.  
  76. ### BEGIN /etc/grub.d/05_debian_theme ###
  77. set menu_color_normal=light-gray/black
  78. set menu_color_highlight=yellow/black
  79. ### END /etc/grub.d/05_debian_theme ###
  80.  
  81. ### BEGIN /etc/grub.d/10_linux ###
  82. function gfxmode {
  83.         set gfxpayload="${1}"
  84. }
  85. set linux_gfx_mode=
  86. export linux_gfx_mode
  87. menuentry 'Debian 11 Bullseye AMD 64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  88.         load_video
  89.         insmod gzio
  90.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  91.         insmod part_msdos
  92.         insmod ext2
  93.         set root='hd0,msdos2'
  94.         if [ x$feature_platform_search_hint = xy ]; then
  95.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  96.         else
  97.           search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  98.         fi
  99.         echo    'Loading Linux 5.10.0-9-amd64 ...'
  100.         linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro nomodeset quiet
  101.         echo    'Loading initial ramdisk ...'
  102.         initrd  /boot/initrd.img-5.10.0-9-amd64
  103. }
  104. # Beginn der Gibbi extensin
  105. set linux_gfx_mode=
  106. export linux_gfx_mode
  107. menuentry 'Debian 11 Bullseye Console Mode' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  108.         load_video
  109.         insmod gzio
  110.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  111.         insmod part_msdos
  112.         insmod ext2
  113.         set root='hd0,msdos2'
  114.         if [ x$feature_platform_search_hint = xy ]; then
  115.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  116.         else
  117.           search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  118.         fi
  119.         echo    'Loading Linux 5.10.0-9-amd64 ...'
  120.         linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro nomodeset quiet init 3
  121.         echo    'Loading initial ramdisk ...'
  122.         initrd  /boot/initrd.img-5.10.0-9-amd64
  123. }
  124. set linux_gfx_mode=
  125. export linux_gfx_mode
  126. menuentry 'Debian 11 Bullseye Service Mode' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  127.         load_video
  128.         insmod gzio
  129.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  130.         insmod part_msdos
  131.         insmod ext2
  132.         set root='hd0,msdos2'
  133.         if [ x$feature_platform_search_hint = xy ]; then
  134.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  135.         else
  136.           search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  137.         fi
  138.         echo    'Loading Linux 5.10.0-9-amd64 ...'
  139.         linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro nomodeset quiet init s
  140.         echo    'Loading initial ramdisk ...'
  141.         initrd  /boot/initrd.img-5.10.0-9-amd64
  142. }
  143. # Ende der Gibbi extensin
  144. submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  145.         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-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  146.                 load_video
  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  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  154.                 else
  155.                   search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  156.                 fi
  157.                 echo    'Loading Linux 5.10.0-9-amd64 ...'
  158.                 linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro nomodeset quiet
  159.                 echo    'Loading initial ramdisk ...'
  160.                 initrd  /boot/initrd.img-5.10.0-9-amd64
  161.         }
  162.         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-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  163.                 load_video
  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  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  171.                 else
  172.                   search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  173.                 fi
  174.                 echo    'Loading Linux 5.10.0-9-amd64 ...'
  175.                 linux   /boot/vmlinuz-5.10.0-9-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro single nomodeset
  176.                 echo    'Loading initial ramdisk ...'
  177.                 initrd  /boot/initrd.img-5.10.0-9-amd64
  178.         }
  179.         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-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  180.                 load_video
  181.                 insmod gzio
  182.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  183.                 insmod part_msdos
  184.                 insmod ext2
  185.                 set root='hd0,msdos2'
  186.                 if [ x$feature_platform_search_hint = xy ]; then
  187.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  188.                 else
  189.                   search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  190.                 fi
  191.                 echo    'Loading Linux 5.10.0-8-amd64 ...'
  192.                 linux   /boot/vmlinuz-5.10.0-8-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro nomodeset quiet
  193.                 echo    'Loading initial ramdisk ...'
  194.                 initrd  /boot/initrd.img-5.10.0-8-amd64
  195.         }
  196.         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-80cf9e97-37fe-444e-be2f-772ebf48f9a4' {
  197.                 load_video
  198.                 insmod gzio
  199.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  200.                 insmod part_msdos
  201.                 insmod ext2
  202.                 set root='hd0,msdos2'
  203.                 if [ x$feature_platform_search_hint = xy ]; then
  204.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  205.                 else
  206.                   search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  207.                 fi
  208.                 echo    'Loading Linux 5.10.0-8-amd64 ...'
  209.                 linux   /boot/vmlinuz-5.10.0-8-amd64 root=UUID=80cf9e97-37fe-444e-be2f-772ebf48f9a4 ro single nomodeset
  210.                 echo    'Loading initial ramdisk ...'
  211.                 initrd  /boot/initrd.img-5.10.0-8-amd64
  212.         }
  213. }
  214.  
  215. ### END /etc/grub.d/10_linux ###
  216.  
  217. ### BEGIN /etc/grub.d/20_linux_xen ###
  218.  
  219. ### END /etc/grub.d/20_linux_xen ###
  220.  
  221. ### BEGIN /etc/grub.d/20_memtest86 ###
  222. menuentry "Memory test (memtest86)" {
  223.         linux16 /boot/memtest86.bin
  224. }
  225. ### END /etc/grub.d/20_memtest86 ###
  226.  
  227. ### BEGIN /etc/grub.d/20_memtest86+ ###
  228. ### END /etc/grub.d/20_memtest86+ ###
  229.  
  230. ### BEGIN /etc/grub.d/22_invaders ###
  231. menuentry "GRUB Invaders" {
  232.         insmod part_msdos
  233.         insmod ext2
  234.         set root='hd0,msdos2'
  235.         if [ x$feature_platform_search_hint = xy ]; then
  236.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  80cf9e97-37fe-444e-be2f-772ebf48f9a4
  237.         else
  238.           search --no-floppy --fs-uuid --set=root 80cf9e97-37fe-444e-be2f-772ebf48f9a4
  239.         fi
  240.         multiboot       /boot/invaders.exec
  241. }
  242. ### END /etc/grub.d/22_invaders ###
  243.  
  244. ### BEGIN /etc/grub.d/30_os-prober ###
  245. ### END /etc/grub.d/30_os-prober ###
  246.  
  247. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  248. ### END /etc/grub.d/30_uefi-firmware ###
  249.  
  250. ### BEGIN /etc/grub.d/40_custom ###
  251. # This file provides an easy way to add custom menu entries.  Simply type the
  252. # menu entries you want to add after this comment.  Be careful not to change
  253. # the 'exec tail' line above.
  254. menuentry 'Boot from Floppy' {root=(fd0); chainloader +1}
  255. menuentry 'Shutdown' {halt}
  256. menuentry 'Reboot' {reboot}
  257.  
  258. ### END /etc/grub.d/40_custom ###
  259.  
  260. ### BEGIN /etc/grub.d/41_custom ###
  261. if [ -f  ${config_directory}/custom.cfg ]; then
  262.   source ${config_directory}/custom.cfg
  263. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  264.   source $prefix/custom.cfg;
  265. fi
  266. ### END /etc/grub.d/41_custom ###

Quellcode

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