NoPaste

grub

von ottonormal

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="Linux Mint 18 LXDE 32-Bit"
  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 recordfail {
  45.   set recordfail=1
  46.   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  47. }
  48. function load_video {
  49.   if [ x$feature_all_video_module = xy ]; then
  50.     insmod all_video
  51.   else
  52.     insmod efi_gop
  53.     insmod efi_uga
  54.     insmod ieee1275_fb
  55.     insmod vbe
  56.     insmod vga
  57.     insmod video_bochs
  58.     insmod video_cirrus
  59.   fi
  60. }
  61.  
  62. if [ x$feature_default_font_path = xy ] ; then
  63.    font=unicode
  64. else
  65. insmod part_msdos
  66. insmod ext2
  67. set root='hd0,msdos1'
  68. if [ x$feature_platform_search_hint = xy ]; then
  69.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  70. else
  71.   search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  72. fi
  73.     font="/grub/unicode.pf2"
  74. fi
  75.  
  76. if loadfont $font ; then
  77.   set gfxmode=auto
  78.   load_video
  79.   insmod gfxterm
  80.   set locale_dir=$prefix/locale
  81.   set lang=de_DE
  82.   insmod gettext
  83. fi
  84. terminal_output gfxterm
  85. if [ "${recordfail}" = 1 ] ; then
  86.   set timeout=30
  87. else
  88.   if [ x$feature_timeout_style = xy ] ; then
  89.     set timeout_style=menu
  90.     set timeout=20
  91.   # Fallback normal timeout code in case the timeout_style feature is
  92.   # unavailable.
  93.   else
  94.     set timeout=20
  95.   fi
  96. fi
  97. ### END /etc/grub.d/00_header ###
  98.  
  99. ### BEGIN /etc/grub.d/05_debian_theme ###
  100. set menu_color_normal=white/black
  101. set menu_color_highlight=black/light-gray
  102. ### END /etc/grub.d/05_debian_theme ###
  103.  
  104. ### BEGIN /etc/grub.d/06_mint_theme ###
  105. set menu_color_normal=white/black
  106. set menu_color_highlight=white/light-gray
  107. ### END /etc/grub.d/06_mint_theme ###
  108.  
  109. ### BEGIN /etc/grub.d/10_linux_proxy ###
  110.  
  111. function gfxmode {
  112.         set gfxpayload="${1}"
  113.         if [ "${1}" = "keep" ]; then
  114.                 set vt_handoff=vt.handoff=7
  115.         else
  116.                 set vt_handoff=
  117.         fi
  118. }
  119. if [ "${recordfail}" != 1 ]; then
  120.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  121.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  122.       if [ ${match} = 0 ]; then
  123.         set linux_gfx_mode=keep
  124.       else
  125.         set linux_gfx_mode=text
  126.       fi
  127.     else
  128.       set linux_gfx_mode=text
  129.     fi
  130.   else
  131.     set linux_gfx_mode=keep
  132.   fi
  133. else
  134.   set linux_gfx_mode=text
  135. fi
  136. export linux_gfx_mode
  137.  
  138.  
  139.  
  140. ### END /etc/grub.d/10_linux_proxy ###
  141.  
  142. ### BEGIN /etc/grub.d/40_android ###
  143. # This file provides an easy way to add custom menu entries.  Simply type the
  144. # menu entries you want to add after this comment.  Be careful not to change
  145. # the 'exec tail' line above.
  146.  
  147. menuentry 'Android' {
  148.    search --no-floppy --fs-uuid --set=root 1c3e7483-557a-448e-a6e9-9b66329d8ffd
  149.    linux /android-6.0-rc1/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/android-6.0-rc1
  150.    initrd /android-6.0-rc1/initrd.img
  151. }
  152. ### END /etc/grub.d/40_android ###
  153.  
  154. ### BEGIN /etc/grub.d/41_linux_proxy ###
  155. menuentry "Linux Mint 18 LXDE 32-Bit" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3ecdca09-e5d9-4c27-931e-f335f6e3ce29' {
  156.         recordfail
  157.         load_video
  158.         gfxmode $linux_gfx_mode
  159.         insmod gzio
  160.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  161.         insmod part_msdos
  162.         insmod ext2
  163.         set root='hd0,msdos1'
  164.         if [ x$feature_platform_search_hint = xy ]; then
  165.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  166.         else
  167.           search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  168.         fi
  169.         linux   /vmlinuz-4.4.0-21-generic root=UUID=3ecdca09-e5d9-4c27-931e-f335f6e3ce29 ro  quiet splash $vt_handoff
  170.         initrd  /initrd.img-4.4.0-21-generic
  171. }
  172. submenu "Erweiterte Optionen für Linux Mint 18 LXDE 32-Bit"{
  173. menuentry "Linux Mint 18 LXDE 32-Bit, mit Linux 4.4.0-21-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-advanced-3ecdca09-e5d9-4c27-931e-f335f6e3ce29' {
  174.                 recordfail
  175.                 load_video
  176.                 gfxmode $linux_gfx_mode
  177.                 insmod gzio
  178.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  179.                 insmod part_msdos
  180.                 insmod ext2
  181.                 set root='hd0,msdos1'
  182.                 if [ x$feature_platform_search_hint = xy ]; then
  183.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  184.                 else
  185.                   search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  186.                 fi
  187.                 echo    'Linux 4.4.0-21-generic wird geladen …'
  188.                 linux   /vmlinuz-4.4.0-21-generic root=UUID=3ecdca09-e5d9-4c27-931e-f335f6e3ce29 ro  quiet splash $vt_handoff
  189.                 echo    'Initiale Ramdisk wird geladen …'
  190.                 initrd  /initrd.img-4.4.0-21-generic
  191. }
  192. menuentry "Linux Mint 18 LXDE 32-Bit, with Linux 4.4.0-21-generic (upstart)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-init-upstart-3ecdca09-e5d9-4c27-931e-f335f6e3ce29' {
  193.                 recordfail
  194.                 load_video
  195.                 gfxmode $linux_gfx_mode
  196.                 insmod gzio
  197.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  198.                 insmod part_msdos
  199.                 insmod ext2
  200.                 set root='hd0,msdos1'
  201.                 if [ x$feature_platform_search_hint = xy ]; then
  202.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  203.                 else
  204.                   search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  205.                 fi
  206.                 echo    'Linux 4.4.0-21-generic wird geladen …'
  207.                 linux   /vmlinuz-4.4.0-21-generic root=UUID=3ecdca09-e5d9-4c27-931e-f335f6e3ce29 ro  quiet splash $vt_handoff init=/sbin/upstart
  208.                 echo    'Initiale Ramdisk wird geladen …'
  209.                 initrd  /initrd.img-4.4.0-21-generic
  210. }
  211. menuentry "Linux Mint 18 LXDE 32-Bit, with Linux 4.4.0-21-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-recovery-3ecdca09-e5d9-4c27-931e-f335f6e3ce29' {
  212.                 recordfail
  213.                 load_video
  214.                 insmod gzio
  215.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  216.                 insmod part_msdos
  217.                 insmod ext2
  218.                 set root='hd0,msdos1'
  219.                 if [ x$feature_platform_search_hint = xy ]; then
  220.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  221.                 else
  222.                   search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  223.                 fi
  224.                 echo    'Linux 4.4.0-21-generic wird geladen …'
  225.                 linux   /vmlinuz-4.4.0-21-generic root=UUID=3ecdca09-e5d9-4c27-931e-f335f6e3ce29 ro recovery nomodeset
  226.                 echo    'Initiale Ramdisk wird geladen …'
  227.                 initrd  /initrd.img-4.4.0-21-generic
  228. }
  229. }
  230. ### END /etc/grub.d/41_linux_proxy ###
  231.  
  232. ### BEGIN /etc/grub.d/42_lupin ###
  233. ### END /etc/grub.d/42_lupin ###
  234.  
  235. ### BEGIN /etc/grub.d/43_linux_xen ###
  236.  
  237. ### END /etc/grub.d/43_linux_xen ###
  238.  
  239. ### BEGIN /etc/grub.d/44_memtest86+_proxy ###
  240.  
  241.  
  242.  
  243. ### END /etc/grub.d/44_memtest86+_proxy ###
  244.  
  245. ### BEGIN /etc/grub.d/45_custom ###
  246. # This file provides an easy way to add custom menu entries.  Simply type the
  247. # menu entries you want to add after this comment.  Be careful not to change
  248. # the 'exec tail' line above.
  249. ### END /etc/grub.d/45_custom ###
  250.  
  251. ### BEGIN /etc/grub.d/46_memtest86+_proxy ###
  252. menuentry "Memory test (memtest86+)" {
  253.         insmod part_msdos
  254.         insmod ext2
  255.         set root='hd0,msdos1'
  256.         if [ x$feature_platform_search_hint = xy ]; then
  257.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  258.         else
  259.           search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  260.         fi
  261.         knetbsd /memtest86+.elf
  262. }
  263. menuentry "Memory test (memtest86+, serial console 115200)" {
  264.         insmod part_msdos
  265.         insmod ext2
  266.         set root='hd0,msdos1'
  267.         if [ x$feature_platform_search_hint = xy ]; then
  268.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  269.         else
  270.           search --no-floppy --fs-uuid --set=root ea44b4eb-0096-4543-ad4e-bb71d65c1d85
  271.         fi
  272.         linux16 /memtest86+.bin console=ttyS0,115200n8
  273. }
  274. ### END /etc/grub.d/46_memtest86+_proxy ###
  275.  
  276. ### BEGIN /etc/grub.d/47_os-prober ###
  277. ### END /etc/grub.d/47_os-prober ###
  278.  
  279. ### BEGIN /etc/grub.d/48_uefi-firmware ###
  280. ### END /etc/grub.d/48_uefi-firmware ###
  281.  
  282. ### BEGIN /etc/grub.d/49_custom ###
  283. if [ -f  ${config_directory}/custom.cfg ]; then
  284.   source ${config_directory}/custom.cfg
  285. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  286.   source $prefix/custom.cfg;
  287. fi
  288. ### END /etc/grub.d/49_custom ###
  289.  

Quellcode

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