Guest User

grub

a guest
Dec 30th, 2021
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.80 KB | None | 0 0
  1. sudo cat /boot/grub2/grub.cfg
  2. [sudo] пароль для root:
  3. #
  4. # DO NOT EDIT THIS FILE
  5. #
  6. # It is automatically generated by grub2-mkconfig using templates
  7. # from /etc/grub.d and settings from /etc/default/grub
  8. #
  9.  
  10. ### BEGIN /etc/grub.d/00_header ###
  11. if [ -f ${config_directory}/grubenv ]; then
  12. load_env -f ${config_directory}/grubenv
  13. elif [ -s $prefix/grubenv ]; then
  14. load_env
  15. fi
  16.  
  17. if [ "${env_block}" ] ; then
  18. set env_block="(${root})${env_block}"
  19. export env_block
  20. load_env -f "${env_block}"
  21. fi
  22.  
  23. if [ "${next_entry}" ] ; then
  24. set default="${next_entry}"
  25. set next_entry=
  26. save_env next_entry
  27. if [ "${env_block}" ] ; then
  28. save_env -f "${env_block}" next_entry
  29. fi
  30. set boot_once=true
  31. else
  32. set default="${saved_entry}"
  33. fi
  34.  
  35. if [ x"${feature_menuentry_id}" = xy ]; then
  36. menuentry_id_option="--id"
  37. else
  38. menuentry_id_option=""
  39. fi
  40.  
  41. export menuentry_id_option
  42.  
  43. if [ "${prev_saved_entry}" ]; then
  44. set saved_entry="${prev_saved_entry}"
  45. save_env saved_entry
  46. set prev_saved_entry=
  47. save_env prev_saved_entry
  48. set boot_once=true
  49. fi
  50.  
  51. function savedefault {
  52. if [ -z "${boot_once}" ]; then
  53. saved_entry="${chosen}"
  54. if [ "${env_block}" ] ; then
  55. save_env -f "${env_block}" saved_entry
  56. else
  57. save_env saved_entry
  58. fi
  59.  
  60. fi
  61. }
  62.  
  63. function load_video {
  64. if [ x$feature_all_video_module = xy ]; then
  65. insmod all_video
  66. else
  67. insmod efi_gop
  68. insmod efi_uga
  69. insmod ieee1275_fb
  70. insmod vbe
  71. insmod vga
  72. insmod video_bochs
  73. insmod video_cirrus
  74. fi
  75. }
  76.  
  77. if [ x$feature_default_font_path = xy ] ; then
  78. font=unicode
  79. else
  80. insmod part_msdos
  81. insmod ext2
  82. set root='hd0,msdos1'
  83. if [ x$feature_platform_search_hint = xy ]; then
  84. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  85. else
  86. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  87. fi
  88. font="/usr/share/grub2/unicode.pf2"
  89. fi
  90.  
  91. if loadfont $font ; then
  92. if [ "${grub_platform}" = "efi" ]; then
  93. echo "Please press 't' to show the boot menu on this console"
  94. fi
  95.  
  96. set gfxmode=auto
  97. load_video
  98. insmod gfxterm
  99. fi
  100. terminal_input console
  101. terminal_output gfxterm
  102. insmod part_msdos
  103. insmod ext2
  104. set root='hd0,msdos1'
  105. if [ x$feature_platform_search_hint = xy ]; then
  106. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  107. else
  108. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  109. fi
  110. insmod gfxmenu
  111. loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
  112. loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
  113. loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
  114. loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
  115. insmod png
  116. set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
  117. export theme
  118. if [ x${boot_once} = xtrue ]; then
  119. set timeout=0
  120. elif [ x$feature_timeout_style = xy ] ; then
  121. set timeout_style=menu
  122. set timeout=1
  123. # Fallback normal timeout code in case the timeout_style feature is
  124. # unavailable.
  125. else
  126. set timeout=1
  127. fi
  128. ### END /etc/grub.d/00_header ###
  129.  
  130. ### BEGIN /etc/grub.d/00_tuned ###
  131. set tuned_params=""
  132. set tuned_initrd=""
  133. ### END /etc/grub.d/00_tuned ###
  134.  
  135. ### BEGIN /etc/grub.d/10_linux ###
  136. menuentry 'openSUSE Tumbleweed' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  137. load_video
  138. set gfxpayload=keep
  139. insmod gzio
  140. insmod part_msdos
  141. insmod ext2
  142. set root='hd0,msdos1'
  143. if [ x$feature_platform_search_hint = xy ]; then
  144. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  145. else
  146. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  147. fi
  148. echo 'Loading Linux 5.15.8-1-default ...'
  149. linux /boot/vmlinuz-5.15.8-1-default root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029 nomodeset splash=silent quiet showopts
  150. echo 'Loading initial ramdisk ...'
  151. initrd /boot/initrd-5.15.8-1-default
  152. }
  153. submenu 'Advanced options for openSUSE Tumbleweed' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  154. menuentry 'openSUSE Tumbleweed, with Linux 5.15.8-1-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.8-1-default-advanced-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  155. load_video
  156. set gfxpayload=keep
  157. insmod gzio
  158. insmod part_msdos
  159. insmod ext2
  160. set root='hd0,msdos1'
  161. if [ x$feature_platform_search_hint = xy ]; then
  162. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  163. else
  164. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  165. fi
  166. echo 'Loading Linux 5.15.8-1-default ...'
  167. linux /boot/vmlinuz-5.15.8-1-default root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029 nomodeset splash=silent quiet showopts
  168. echo 'Loading initial ramdisk ...'
  169. initrd /boot/initrd-5.15.8-1-default
  170. }
  171. menuentry 'openSUSE Tumbleweed, with Linux 5.15.8-1-default (recovery mode)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.8-1-default-recovery-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  172. load_video
  173. set gfxpayload=keep
  174. insmod gzio
  175. insmod part_msdos
  176. insmod ext2
  177. set root='hd0,msdos1'
  178. if [ x$feature_platform_search_hint = xy ]; then
  179. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  180. else
  181. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  182. fi
  183. echo 'Loading Linux 5.15.8-1-default ...'
  184. linux /boot/vmlinuz-5.15.8-1-default root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029
  185. echo 'Loading initial ramdisk ...'
  186. initrd /boot/initrd-5.15.8-1-default
  187. }
  188. menuentry 'openSUSE Tumbleweed, with Linux 5.15.8-1-debug' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.8-1-debug-advanced-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  189. load_video
  190. set gfxpayload=keep
  191. insmod gzio
  192. insmod part_msdos
  193. insmod ext2
  194. set root='hd0,msdos1'
  195. if [ x$feature_platform_search_hint = xy ]; then
  196. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  197. else
  198. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  199. fi
  200. echo 'Loading Linux 5.15.8-1-debug ...'
  201. linux /boot/vmlinuz-5.15.8-1-debug root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029 nomodeset splash=silent quiet showopts
  202. echo 'Loading initial ramdisk ...'
  203. initrd /boot/initrd-5.15.8-1-debug
  204. }
  205. menuentry 'openSUSE Tumbleweed, with Linux 5.15.8-1-debug (recovery mode)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.8-1-debug-recovery-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  206. load_video
  207. set gfxpayload=keep
  208. insmod gzio
  209. insmod part_msdos
  210. insmod ext2
  211. set root='hd0,msdos1'
  212. if [ x$feature_platform_search_hint = xy ]; then
  213. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  214. else
  215. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  216. fi
  217. echo 'Loading Linux 5.15.8-1-debug ...'
  218. linux /boot/vmlinuz-5.15.8-1-debug root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029
  219. echo 'Loading initial ramdisk ...'
  220. initrd /boot/initrd-5.15.8-1-debug
  221. }
  222. menuentry 'openSUSE Tumbleweed, with Linux 5.15.7-1-default' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.7-1-default-advanced-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  223. load_video
  224. set gfxpayload=keep
  225. insmod gzio
  226. insmod part_msdos
  227. insmod ext2
  228. set root='hd0,msdos1'
  229. if [ x$feature_platform_search_hint = xy ]; then
  230. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  231. else
  232. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  233. fi
  234. echo 'Loading Linux 5.15.7-1-default ...'
  235. linux /boot/vmlinuz-5.15.7-1-default root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029 nomodeset splash=silent quiet showopts
  236. echo 'Loading initial ramdisk ...'
  237. initrd /boot/initrd-5.15.7-1-default
  238. }
  239. menuentry 'openSUSE Tumbleweed, with Linux 5.15.7-1-default (recovery mode)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.7-1-default-recovery-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  240. load_video
  241. set gfxpayload=keep
  242. insmod gzio
  243. insmod part_msdos
  244. insmod ext2
  245. set root='hd0,msdos1'
  246. if [ x$feature_platform_search_hint = xy ]; then
  247. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  248. else
  249. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  250. fi
  251. echo 'Loading Linux 5.15.7-1-default ...'
  252. linux /boot/vmlinuz-5.15.7-1-default root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029
  253. echo 'Loading initial ramdisk ...'
  254. initrd /boot/initrd-5.15.7-1-default
  255. }
  256. menuentry 'openSUSE Tumbleweed, with Linux 5.15.7-1-debug' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.7-1-debug-advanced-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  257. load_video
  258. set gfxpayload=keep
  259. insmod gzio
  260. insmod part_msdos
  261. insmod ext2
  262. set root='hd0,msdos1'
  263. if [ x$feature_platform_search_hint = xy ]; then
  264. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  265. else
  266. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  267. fi
  268. echo 'Loading Linux 5.15.7-1-debug ...'
  269. linux /boot/vmlinuz-5.15.7-1-debug root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029 nomodeset splash=silent quiet showopts
  270. echo 'Loading initial ramdisk ...'
  271. initrd /boot/initrd-5.15.7-1-debug
  272. }
  273. menuentry 'openSUSE Tumbleweed, with Linux 5.15.7-1-debug (recovery mode)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.7-1-debug-recovery-9e1527d7-089e-4317-9ad5-2678ecf77029' {
  274. load_video
  275. set gfxpayload=keep
  276. insmod gzio
  277. insmod part_msdos
  278. insmod ext2
  279. set root='hd0,msdos1'
  280. if [ x$feature_platform_search_hint = xy ]; then
  281. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 9e1527d7-089e-4317-9ad5-2678ecf77029
  282. else
  283. search --no-floppy --fs-uuid --set=root 9e1527d7-089e-4317-9ad5-2678ecf77029
  284. fi
  285. echo 'Loading Linux 5.15.7-1-debug ...'
  286. linux /boot/vmlinuz-5.15.7-1-debug root=UUID=9e1527d7-089e-4317-9ad5-2678ecf77029
  287. echo 'Loading initial ramdisk ...'
  288. initrd /boot/initrd-5.15.7-1-debug
  289. }
  290. }
  291.  
  292. ### END /etc/grub.d/10_linux ###
  293.  
  294. ### BEGIN /etc/grub.d/20_linux_xen ###
  295.  
  296. ### END /etc/grub.d/20_linux_xen ###
  297.  
  298. ### BEGIN /etc/grub.d/20_memtest86+ ###
  299. ### END /etc/grub.d/20_memtest86+ ###
  300.  
  301. ### BEGIN /etc/grub.d/30_os-prober ###
  302. ### END /etc/grub.d/30_os-prober ###
  303.  
  304. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  305. ### END /etc/grub.d/30_uefi-firmware ###
  306.  
  307. ### BEGIN /etc/grub.d/35_fwupd ###
  308. ### END /etc/grub.d/35_fwupd ###
  309.  
  310. ### BEGIN /etc/grub.d/40_custom ###
  311. # This file provides an easy way to add custom menu entries. Simply type the
  312. # menu entries you want to add after this comment. Be careful not to change
  313. # the 'exec tail' line above.
  314. ### END /etc/grub.d/40_custom ###
  315.  
  316. ### BEGIN /etc/grub.d/41_custom ###
  317. if [ -f ${config_directory}/custom.cfg ]; then
  318. source ${config_directory}/custom.cfg
  319. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  320. source $prefix/custom.cfg
  321. fi
  322. ### END /etc/grub.d/41_custom ###
  323.  
  324. ### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###
  325. ### END /etc/grub.d/80_suse_btrfs_snapshot ###
  326.  
  327. ### BEGIN /etc/grub.d/90_persistent ###
  328. ### END /etc/grub.d/90_persistent ###
  329.  
  330. ### BEGIN /etc/grub.d/95_textmode ###
  331. if [ "${grub_platform}" = "efi" ]; then
  332. # On EFI systems we can only have graphics *or* serial, so allow the user
  333. # to switch between the two
  334. hiddenentry 'Text mode' --hotkey 't' {
  335. set textmode=true
  336. terminal_output console
  337. }
  338. fi
  339. ### END /etc/grub.d/95_textmode ###
Advertisement
Add Comment
Please, Sign In to add comment