Advertisement
Guest User

grub2 config

a guest
Aug 27th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  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. # insmod part_gpt
  10. insmod part_msdos
  11. if [ -s $prefix/grubenv ]; then
  12. load_env
  13. fi
  14. if [ "${next_entry}" ] ; then
  15. set default="${next_entry}"
  16. set next_entry=
  17. save_env next_entry
  18. set boot_once=true
  19. else
  20. set default="0"
  21. fi
  22.  
  23. if [ x"${feature_menuentry_id}" = xy ]; then
  24. menuentry_id_option="--id"
  25. else
  26. menuentry_id_option=""
  27. fi
  28.  
  29. export menuentry_id_option
  30.  
  31. if [ "${prev_saved_entry}" ]; then
  32. set saved_entry="${prev_saved_entry}"
  33. save_env saved_entry
  34. set prev_saved_entry=
  35. save_env prev_saved_entry
  36. set boot_once=true
  37. fi
  38.  
  39. function savedefault {
  40. if [ -z "${boot_once}" ]; then
  41. saved_entry="${chosen}"
  42. save_env saved_entry
  43. fi
  44. }
  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. if loadfont $font ; then
  61. set gfxmode=auto
  62. load_video
  63. insmod gfxterm
  64. set locale_dir=$prefix/locale
  65. set lang=en_US
  66. insmod gettext
  67. fi
  68. terminal_input console
  69. terminal_output gfxterm
  70. if [ x$feature_timeout_style = xy ] ; then
  71. set timeout_style=menu
  72. set timeout=5
  73. # Fallback normal timeout code in case the timeout_style feature is
  74. # unavailable.
  75. else
  76. set timeout=5
  77. fi
  78. menuentry 'SystemRescueCd' {
  79. load_video
  80. insmod gzio
  81. insmod part_gpt
  82. insmod part_msdos
  83. insmod fat
  84. search --no-floppy --label SYSRCD617 --set=root
  85. echo 'Loading Linux kernel ...'
  86. linux /sysresccd/boot/i686/vmlinuz archisobasedir=sysresccd archisolabel=SYSRCD617 copytoram setkmap=us
  87. echo 'Loading initramfs ...'
  88. initrd /sysresccd/boot/intel_ucode.img /sysresccd/boot/amd_ucode.img /sysresccd/boot/i686/sysresccd.img
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement