Advertisement
feipo

grub.cfg

Jan 29th, 2024
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 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 btrfs
  63. search --no-floppy --fs-uuid --set=root b9fc82e1-4a25-41d5-b151-f485705e3058
  64. font="/@/usr/share/grub/unicode.pf2"
  65. fi
  66.  
  67. if loadfont $font ; then
  68. set gfxmode=auto
  69. load_video
  70. insmod gfxterm
  71. fi
  72. terminal_output gfxterm
  73. if [ x$feature_timeout_style = xy ] ; then
  74. set timeout_style=menu
  75. set timeout=5
  76. # Fallback normal timeout code in case the timeout_style feature is
  77. # unavailable.
  78. else
  79. set timeout=5
  80. fi
  81. ### END /etc/grub.d/00_header ###
  82.  
  83. ### BEGIN /etc/grub.d/10_linux ###
  84. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b9fc82e1-4a25-41d5-b151-f485705e3058' {
  85. load_video
  86. insmod gzio
  87. insmod part_msdos
  88. insmod btrfs
  89. search --no-floppy --fs-uuid --set=root b9fc82e1-4a25-41d5-b151-f485705e3058
  90. echo 'Loading Linux 6.6.13-gentoo-x86_64 ...'
  91. linux /@/boot/vmlinuz-6.6.13-gentoo-x86_64 root=UUID=b9fc82e1-4a25-41d5-b151-f485705e3058 ro rootflags=subvol=@
  92. echo 'Loading initial ramdisk ...'
  93. initrd /@/boot/initramfs-6.6.13-gentoo-x86_64.img
  94. }
  95. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b9fc82e1-4a25-41d5-b151-f485705e3058' {
  96. menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-x86_64-advanced-b9fc82e1-4a25-41d5-b151-f485705e3058' {
  97. load_video
  98. insmod gzio
  99. insmod part_msdos
  100. insmod btrfs
  101. search --no-floppy --fs-uuid --set=root b9fc82e1-4a25-41d5-b151-f485705e3058
  102. echo 'Loading Linux 6.6.13-gentoo-x86_64 ...'
  103. linux /@/boot/vmlinuz-6.6.13-gentoo-x86_64 root=UUID=b9fc82e1-4a25-41d5-b151-f485705e3058 ro rootflags=subvol=@
  104. echo 'Loading initial ramdisk ...'
  105. initrd /@/boot/initramfs-6.6.13-gentoo-x86_64.img
  106. }
  107. menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-x86_64-recovery-b9fc82e1-4a25-41d5-b151-f485705e3058' {
  108. load_video
  109. insmod gzio
  110. insmod part_msdos
  111. insmod btrfs
  112. search --no-floppy --fs-uuid --set=root b9fc82e1-4a25-41d5-b151-f485705e3058
  113. echo 'Loading Linux 6.6.13-gentoo-x86_64 ...'
  114. linux /@/boot/vmlinuz-6.6.13-gentoo-x86_64 root=UUID=b9fc82e1-4a25-41d5-b151-f485705e3058 ro single rootflags=subvol=@
  115. echo 'Loading initial ramdisk ...'
  116. initrd /@/boot/initramfs-6.6.13-gentoo-x86_64.img
  117. }
  118. }
  119.  
  120. ### END /etc/grub.d/10_linux ###
  121.  
  122. ### BEGIN /etc/grub.d/20_linux_xen ###
  123. ### END /etc/grub.d/20_linux_xen ###
  124.  
  125. ### BEGIN /etc/grub.d/30_os-prober ###
  126. ### END /etc/grub.d/30_os-prober ###
  127.  
  128. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  129. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  130. fwsetup
  131. }
  132. ### END /etc/grub.d/30_uefi-firmware ###
  133.  
  134. ### BEGIN /etc/grub.d/40_custom ###
  135. # This file provides an easy way to add custom menu entries. Simply type the
  136. # menu entries you want to add after this comment. Be careful not to change
  137. # the 'exec tail' line above.
  138. ### END /etc/grub.d/40_custom ###
  139.  
  140. ### BEGIN /etc/grub.d/41_custom ###
  141. if [ -f ${config_directory}/custom.cfg ]; then
  142. source ${config_directory}/custom.cfg
  143. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  144. source $prefix/custom.cfg
  145. fi
  146. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement