Advertisement
Guest User

config grub

a guest
Mar 26th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.23 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. if [ -s $prefix/grubenv ]; then
  10. load_env
  11. fi
  12. if [ "${next_entry}" ] ; then
  13. set default="${next_entry}"
  14. set next_entry=
  15. save_env next_entry
  16. set boot_once=true
  17. else
  18. set default="0"
  19. fi
  20.  
  21. if [ x"${feature_menuentry_id}" = xy ]; then
  22. menuentry_id_option="--id"
  23. else
  24. menuentry_id_option=""
  25. fi
  26.  
  27. export menuentry_id_option
  28.  
  29. if [ "${prev_saved_entry}" ]; then
  30. set saved_entry="${prev_saved_entry}"
  31. save_env saved_entry
  32. set prev_saved_entry=
  33. save_env prev_saved_entry
  34. set boot_once=true
  35. fi
  36.  
  37. function savedefault {
  38. if [ -z "${boot_once}" ]; then
  39. saved_entry="${chosen}"
  40. save_env saved_entry
  41. fi
  42. }
  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. if [ x$feature_default_font_path = xy ] ; then
  59. font=unicode
  60. else
  61. insmod part_msdos
  62. insmod ext2
  63. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  64. font="/usr/lib/grub/fonts/unifont.pf2"
  65. fi
  66.  
  67. if loadfont $font ; then
  68. set gfxmode=auto
  69. load_video
  70. insmod gfxterm
  71. set locale_dir=$prefix/locale
  72. set lang=en_US
  73. insmod gettext
  74. fi
  75. terminal_output gfxterm
  76. if [ x$feature_timeout_style = xy ] ; then
  77. set timeout_style=menu
  78. set timeout=5
  79. # Fallback normal timeout code in case the timeout_style feature is
  80. # unavailable.
  81. else
  82. set timeout=5
  83. fi
  84. ### END /etc/grub.d/00_header ###
  85.  
  86. ### BEGIN /etc/grub.d/10_linux ###
  87. menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e7388fc8-a395-4042-913b-144a7dad4992' {
  88. load_video
  89. insmod gzio
  90. insmod part_msdos
  91. insmod ext2
  92. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  93. echo 'Loading Linux 6.1.21 ...'
  94. linux /boot/vmlinuz-6.1.21 root=/dev/nvme0n1p1 ro intel_pstate=enable quiet splash
  95. }
  96. submenu 'Advanced options for GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  97. menuentry 'GNU/Linux, with Linux 6.1.21' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.21-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  98. load_video
  99. insmod gzio
  100. insmod part_msdos
  101. insmod ext2
  102. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  103. echo 'Loading Linux 6.1.21 ...'
  104. linux /boot/vmlinuz-6.1.21 root=/dev/nvme0n1p1 ro intel_pstate=enable quiet splash
  105. }
  106. menuentry 'GNU/Linux, with Linux 6.1.21 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.21-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  107. load_video
  108. insmod gzio
  109. insmod part_msdos
  110. insmod ext2
  111. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  112. echo 'Loading Linux 6.1.21 ...'
  113. linux /boot/vmlinuz-6.1.21 root=/dev/nvme0n1p1 ro single intel_pstate=enable quiet splash
  114. }
  115. menuentry 'GNU/Linux, with Linux 6.1.11' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.11-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  116. load_video
  117. insmod gzio
  118. insmod part_msdos
  119. insmod ext2
  120. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  121. echo 'Loading Linux 6.1.11 ...'
  122. linux /boot/vmlinuz-6.1.11 root=/dev/nvme0n1p1 ro
  123. }
  124. menuentry 'GNU/Linux, with Linux 6.1.11 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.11-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  125. load_video
  126. insmod gzio
  127. insmod part_msdos
  128. insmod ext2
  129. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  130. echo 'Loading Linux 6.1.11 ...'
  131. linux /boot/vmlinuz-6.1.11 root=/dev/nvme0n1p1 ro single
  132. }
  133. menuentry 'GNU/Linux, with Linux 6.1.7' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.7-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  134. load_video
  135. insmod gzio
  136. insmod part_msdos
  137. insmod ext2
  138. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  139. echo 'Loading Linux 6.1.7 ...'
  140. linux /boot/vmlinuz-6.1.7 root=/dev/nvme0n1p1 ro
  141. }
  142. menuentry 'GNU/Linux, with Linux 6.1.7 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.7-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  143. load_video
  144. insmod gzio
  145. insmod part_msdos
  146. insmod ext2
  147. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  148. echo 'Loading Linux 6.1.7 ...'
  149. linux /boot/vmlinuz-6.1.7 root=/dev/nvme0n1p1 ro single
  150. }
  151. menuentry 'GNU/Linux, with Linux 6.1.4' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.4-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  152. load_video
  153. insmod gzio
  154. insmod part_msdos
  155. insmod ext2
  156. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  157. echo 'Loading Linux 6.1.4 ...'
  158. linux /boot/vmlinuz-6.1.4 root=/dev/nvme0n1p1 ro
  159. }
  160. menuentry 'GNU/Linux, with Linux 6.1.4 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.4-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  161. load_video
  162. insmod gzio
  163. insmod part_msdos
  164. insmod ext2
  165. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  166. echo 'Loading Linux 6.1.4 ...'
  167. linux /boot/vmlinuz-6.1.4 root=/dev/nvme0n1p1 ro single
  168. }
  169. menuentry 'GNU/Linux, with Linux 6.1.2' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.2-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  170. load_video
  171. insmod gzio
  172. insmod part_msdos
  173. insmod ext2
  174. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  175. echo 'Loading Linux 6.1.2 ...'
  176. linux /boot/vmlinuz-6.1.2 root=/dev/nvme0n1p1 ro
  177. }
  178. menuentry 'GNU/Linux, with Linux 6.1.2 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.2-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  179. load_video
  180. insmod gzio
  181. insmod part_msdos
  182. insmod ext2
  183. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  184. echo 'Loading Linux 6.1.2 ...'
  185. linux /boot/vmlinuz-6.1.2 root=/dev/nvme0n1p1 ro single
  186. }
  187. menuentry 'GNU/Linux, with Linux 6.1.1' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.1-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  188. load_video
  189. insmod gzio
  190. insmod part_msdos
  191. insmod ext2
  192. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  193. echo 'Loading Linux 6.1.1 ...'
  194. linux /boot/vmlinuz-6.1.1 root=/dev/nvme0n1p1 ro
  195. }
  196. menuentry 'GNU/Linux, with Linux 6.1.1 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.1-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  197. load_video
  198. insmod gzio
  199. insmod part_msdos
  200. insmod ext2
  201. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  202. echo 'Loading Linux 6.1.1 ...'
  203. linux /boot/vmlinuz-6.1.1 root=/dev/nvme0n1p1 ro single
  204. }
  205. menuentry 'GNU/Linux, with Linux 6.1' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  206. load_video
  207. insmod gzio
  208. insmod part_msdos
  209. insmod ext2
  210. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  211. echo 'Loading Linux 6.1 ...'
  212. linux /boot/vmlinuz-6.1 root=/dev/nvme0n1p1 ro
  213. }
  214. menuentry 'GNU/Linux, with Linux 6.1 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  215. load_video
  216. insmod gzio
  217. insmod part_msdos
  218. insmod ext2
  219. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  220. echo 'Loading Linux 6.1 ...'
  221. linux /boot/vmlinuz-6.1 root=/dev/nvme0n1p1 ro single
  222. }
  223. menuentry 'GNU/Linux, with Linux 5.19.16' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.16-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  224. load_video
  225. insmod gzio
  226. insmod part_msdos
  227. insmod ext2
  228. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  229. echo 'Loading Linux 5.19.16 ...'
  230. linux /boot/vmlinuz-5.19.16 root=/dev/nvme0n1p1 ro
  231. }
  232. menuentry 'GNU/Linux, with Linux 5.19.16 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.16-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  233. load_video
  234. insmod gzio
  235. insmod part_msdos
  236. insmod ext2
  237. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  238. echo 'Loading Linux 5.19.16 ...'
  239. linux /boot/vmlinuz-5.19.16 root=/dev/nvme0n1p1 ro single
  240. }
  241. menuentry 'GNU/Linux, with Linux 5.15.82' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.82-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  242. load_video
  243. insmod gzio
  244. insmod part_msdos
  245. insmod ext2
  246. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  247. echo 'Loading Linux 5.15.82 ...'
  248. linux /boot/vmlinuz-5.15.82 root=/dev/nvme0n1p1 ro
  249. }
  250. menuentry 'GNU/Linux, with Linux 5.15.82 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.82-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  251. load_video
  252. insmod gzio
  253. insmod part_msdos
  254. insmod ext2
  255. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  256. echo 'Loading Linux 5.15.82 ...'
  257. linux /boot/vmlinuz-5.15.82 root=/dev/nvme0n1p1 ro single
  258. }
  259. menuentry 'GNU/Linux, with Linux 4.9.330' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.330-advanced-e7388fc8-a395-4042-913b-144a7dad4992' {
  260. load_video
  261. insmod gzio
  262. insmod part_msdos
  263. insmod ext2
  264. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  265. echo 'Loading Linux 4.9.330 ...'
  266. linux /boot/vmlinuz-4.9.330 root=/dev/nvme0n1p1 ro
  267. }
  268. menuentry 'GNU/Linux, with Linux 4.9.330 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.330-recovery-e7388fc8-a395-4042-913b-144a7dad4992' {
  269. load_video
  270. insmod gzio
  271. insmod part_msdos
  272. insmod ext2
  273. search --no-floppy --fs-uuid --set=root e7388fc8-a395-4042-913b-144a7dad4992
  274. echo 'Loading Linux 4.9.330 ...'
  275. linux /boot/vmlinuz-4.9.330 root=/dev/nvme0n1p1 ro single
  276. }
  277. }
  278.  
  279. ### END /etc/grub.d/10_linux ###
  280.  
  281. ### BEGIN /etc/grub.d/20_linux_xen ###
  282. ### END /etc/grub.d/20_linux_xen ###
  283.  
  284. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  285. ### END /etc/grub.d/30_uefi-firmware ###
  286.  
  287. ### BEGIN /etc/grub.d/40_custom ###
  288. # This file provides an easy way to add custom menu entries. Simply type the
  289. # menu entries you want to add after this comment. Be careful not to change
  290. # the 'exec tail' line above.
  291. ### END /etc/grub.d/40_custom ###
  292.  
  293. ### BEGIN /etc/grub.d/41_custom ###
  294. if [ -f ${config_directory}/custom.cfg ]; then
  295. source ${config_directory}/custom.cfg
  296. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  297. source $prefix/custom.cfg
  298. fi
  299. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement