Advertisement
Guest User

grub.cfg

a guest
Dec 12th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 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 unicode ; then
  61. set gfxmode=auto
  62. load_video
  63. insmod gfxterm
  64. fi
  65. terminal_output gfxterm
  66. if [ x$feature_timeout_style = xy ] ; then
  67. set timeout_style=menu
  68. set timeout=5
  69. # Fallback normal timeout code in case the timeout_style feature is
  70. # unavailable.
  71. else
  72. set timeout=5
  73. fi
  74. ### END /etc/grub.d/00_header ###
  75.  
  76. ### BEGIN /etc/grub.d/10_linux ###
  77. menuentry 'KISS GNU/Linux' --class kiss --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0f71576e-eb71-4428-bfe7-0e4c707c3c3e' {
  78. load_video
  79. insmod gzio
  80. insmod part_gpt
  81. insmod fat
  82. set root='hd0,gpt3'
  83. if [ x$feature_platform_search_hint = xy ]; then
  84. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 A234-D615
  85. else
  86. search --no-floppy --fs-uuid --set=root A234-D615
  87. fi
  88. echo 'Loading Linux 5.16.0-rc4 ...'
  89. linux /vmlinuz-5.16.0-rc4 root=/dev/sda1 ro loglevel=3 quiet
  90. }
  91. submenu 'Advanced options for KISS GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0f71576e-eb71-4428-bfe7-0e4c707c3c3e' {
  92. menuentry 'KISS GNU/Linux, with Linux 5.16.0-rc4' --class kiss --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.16.0-rc4-advanced-0f71576e-eb71-4428-bfe7-0e4c707c3c3e' {
  93. load_video
  94. insmod gzio
  95. insmod part_gpt
  96. insmod fat
  97. set root='hd0,gpt3'
  98. if [ x$feature_platform_search_hint = xy ]; then
  99. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 A234-D615
  100. else
  101. search --no-floppy --fs-uuid --set=root A234-D615
  102. fi
  103. echo 'Loading Linux 5.16.0-rc4 ...'
  104. linux /vmlinuz-5.16.0-rc4 root=/dev/sda1 ro loglevel=3 quiet
  105. }
  106. menuentry 'KISS GNU/Linux, with Linux 5.16.0-rc4 (recovery mode)' --class kiss --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.16.0-rc4-recovery-0f71576e-eb71-4428-bfe7-0e4c707c3c3e' {
  107. load_video
  108. insmod gzio
  109. insmod part_gpt
  110. insmod fat
  111. set root='hd0,gpt3'
  112. if [ x$feature_platform_search_hint = xy ]; then
  113. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 A234-D615
  114. else
  115. search --no-floppy --fs-uuid --set=root A234-D615
  116. fi
  117. echo 'Loading Linux 5.16.0-rc4 ...'
  118. linux /vmlinuz-5.16.0-rc4 root=/dev/sda1 ro single
  119. }
  120. }
  121.  
  122. ### END /etc/grub.d/10_linux ###
  123.  
  124. ### BEGIN /etc/grub.d/20_linux_xen ###
  125. ### END /etc/grub.d/20_linux_xen ###
  126.  
  127. ### BEGIN /etc/grub.d/30_os-prober ###
  128. ### END /etc/grub.d/30_os-prober ###
  129.  
  130. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  131. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  132. fwsetup
  133. }
  134. ### END /etc/grub.d/30_uefi-firmware ###
  135.  
  136. ### BEGIN /etc/grub.d/40_custom ###
  137. # This file provides an easy way to add custom menu entries. Simply type the
  138. # menu entries you want to add after this comment. Be careful not to change
  139. # the 'exec tail' line above.
  140. ### END /etc/grub.d/40_custom ###
  141.  
  142. ### BEGIN /etc/grub.d/41_custom ###
  143. if [ -f ${config_directory}/custom.cfg ]; then
  144. source ${config_directory}/custom.cfg
  145. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  146. source $prefix/custom.cfg
  147. fi
  148. ### END /etc/grub.d/41_custom ###
  149.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement