Guest User

Grub modif 24022024

a guest
Feb 24th, 2024
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.14 KB | None | 0 0
  1. [trevor@trevor-arch ~]$ sudo grub-mkconfig
  2. [sudo] password for trevor:
  3. Generating grub configuration file ...
  4. #
  5. # DO NOT EDIT THIS FILE
  6. #
  7. # It is automatically generated by grub-mkconfig using templates
  8. # from /etc/grub.d and settings from /etc/default/grub
  9. #
  10.  
  11. ### BEGIN /etc/grub.d/00_header ###
  12. insmod part_gpt
  13. insmod part_msdos
  14. if [ -s $prefix/grubenv ]; then
  15. load_env
  16. fi
  17. if [ "${next_entry}" ] ; then
  18. set default="${next_entry}"
  19. set next_entry=
  20. save_env next_entry
  21. set boot_once=true
  22. else
  23. set default="0"
  24. fi
  25.  
  26. if [ x"${feature_menuentry_id}" = xy ]; then
  27. menuentry_id_option="--id"
  28. else
  29. menuentry_id_option=""
  30. fi
  31.  
  32. export menuentry_id_option
  33.  
  34. if [ "${prev_saved_entry}" ]; then
  35. set saved_entry="${prev_saved_entry}"
  36. save_env saved_entry
  37. set prev_saved_entry=
  38. save_env prev_saved_entry
  39. set boot_once=true
  40. fi
  41.  
  42. function savedefault {
  43. if [ -z "${boot_once}" ]; then
  44. saved_entry="${chosen}"
  45. save_env saved_entry
  46. fi
  47. }
  48.  
  49. function load_video {
  50. if [ x$feature_all_video_module = xy ]; then
  51. insmod all_video
  52. else
  53. insmod efi_gop
  54. insmod efi_uga
  55. insmod ieee1275_fb
  56. insmod vbe
  57. insmod vga
  58. insmod video_bochs
  59. insmod video_cirrus
  60. fi
  61. }
  62.  
  63. if [ x$feature_default_font_path = xy ] ; then
  64. font=unicode
  65. else
  66. insmod part_gpt
  67. insmod ext2
  68. set root='hd0,gpt2'
  69. if [ x$feature_platform_search_hint = xy ]; then
  70. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 b0f37ca5-c23e-4b88-9c67-2c49fd715699
  71. else
  72. search --no-floppy --fs-uuid --set=root b0f37ca5-c23e-4b88-9c67-2c49fd715699
  73. fi
  74. font="/usr/share/grub/unicode.pf2"
  75. fi
  76.  
  77. if loadfont $font ; then
  78. set gfxmode=auto
  79. load_video
  80. insmod gfxterm
  81. set locale_dir=$prefix/locale
  82. set lang=en_GB
  83. insmod gettext
  84. fi
  85. terminal_input console
  86. terminal_output gfxterm
  87. if [ x$feature_timeout_style = xy ] ; then
  88. set timeout_style=menu
  89. set timeout=5
  90. # Fallback normal timeout code in case the timeout_style feature is
  91. # unavailable.
  92. else
  93. set timeout=5
  94. fi
  95. ### END /etc/grub.d/00_header ###
  96.  
  97. ### BEGIN /etc/grub.d/10_linux ###
  98. Found linux image: /boot/vmlinuz-linux
  99. Found initrd image: /boot/initramfs-linux.img
  100. menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b0f37ca5-c23e-4b88-9c67-2c49fd715699' {
  101. load_video
  102. set gfxpayload=keep
  103. insmod gzio
  104. insmod part_gpt
  105. insmod ext2
  106. set root='hd0,gpt2'
  107. if [ x$feature_platform_search_hint = xy ]; then
  108. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 b0f37ca5-c23e-4b88-9c67-2c49fd715699
  109. else
  110. search --no-floppy --fs-uuid --set=root b0f37ca5-c23e-4b88-9c67-2c49fd715699
  111. fi
  112. echo 'Loading Linux linux ...'
  113. linux /boot/vmlinuz-linux root=UUID=b0f37ca5-c23e-4b88-9c67-2c49fd715699 rw nvidia_drm.modeset=1 loglevel=3
  114. echo 'Loading initial ramdisk ...'
  115. initrd /boot/initramfs-linux.img
  116. }
  117. submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-b0f37ca5-c23e-4b88-9c67-2c49fd715699' {
  118. menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-b0f37ca5-c23e-4b88-9c67-2c49fd715699' {
  119. load_video
  120. set gfxpayload=keep
  121. insmod gzio
  122. insmod part_gpt
  123. insmod ext2
  124. set root='hd0,gpt2'
  125. if [ x$feature_platform_search_hint = xy ]; then
  126. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 b0f37ca5-c23e-4b88-9c67-2c49fd715699
  127. else
  128. search --no-floppy --fs-uuid --set=root b0f37ca5-c23e-4b88-9c67-2c49fd715699
  129. fi
  130. echo 'Loading Linux linux ...'
  131. linux /boot/vmlinuz-linux root=UUID=b0f37ca5-c23e-4b88-9c67-2c49fd715699 rw nvidia_drm.modeset=1 loglevel=3
  132. echo 'Loading initial ramdisk ...'
  133. initrd /boot/initramfs-linux.img
  134. }
  135. Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
  136. menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-b0f37ca5-c23e-4b88-9c67-2c49fd715699' {
  137. load_video
  138. set gfxpayload=keep
  139. insmod gzio
  140. insmod part_gpt
  141. insmod ext2
  142. set root='hd0,gpt2'
  143. if [ x$feature_platform_search_hint = xy ]; then
  144. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 b0f37ca5-c23e-4b88-9c67-2c49fd715699
  145. else
  146. search --no-floppy --fs-uuid --set=root b0f37ca5-c23e-4b88-9c67-2c49fd715699
  147. fi
  148. echo 'Loading Linux linux ...'
  149. linux /boot/vmlinuz-linux root=UUID=b0f37ca5-c23e-4b88-9c67-2c49fd715699 rw nvidia_drm.modeset=1 loglevel=3
  150. echo 'Loading initial ramdisk ...'
  151. initrd /boot/initramfs-linux-fallback.img
  152. }
  153. }
  154.  
  155. ### END /etc/grub.d/10_linux ###
  156.  
  157. ### BEGIN /etc/grub.d/20_linux_xen ###
  158. ### END /etc/grub.d/20_linux_xen ###
  159.  
  160. ### BEGIN /etc/grub.d/25_bli ###
  161. if [ "$grub_platform" = "efi" ]; then
  162. insmod bli
  163. fi
  164. ### END /etc/grub.d/25_bli ###
  165.  
  166. ### BEGIN /etc/grub.d/30_os-prober ###
  167. Warning: os-prober will not be executed to detect other bootable partitions.
  168. Systems on them will not be added to the GRUB boot configuration.
  169. Check GRUB_DISABLE_OS_PROBER documentation entry.
  170. ### END /etc/grub.d/30_os-prober ###
  171.  
  172. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  173. Adding boot menu entry for UEFI Firmware Settings ...
  174. if [ "$grub_platform" = "efi" ]; then
  175. fwsetup --is-supported
  176. if [ "$?" = 0 ]; then
  177. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  178. fwsetup
  179. }
  180. fi
  181. fi
  182. ### END /etc/grub.d/30_uefi-firmware ###
  183.  
  184. ### BEGIN /etc/grub.d/40_custom ###
  185. # This file provides an easy way to add custom menu entries. Simply type the
  186. # menu entries you want to add after this comment. Be careful not to change
  187. # the 'exec tail' line above.
  188. ### END /etc/grub.d/40_custom ###
  189.  
  190. ### BEGIN /etc/grub.d/41_custom ###
  191. if [ -f ${config_directory}/custom.cfg ]; then
  192. source ${config_directory}/custom.cfg
  193. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  194. source $prefix/custom.cfg
  195. fi
  196. ### END /etc/grub.d/41_custom ###
  197. done
Advertisement
Add Comment
Please, Sign In to add comment