grub.cfg 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. ### BEGIN /etc/grub.d/00_header ###
  8. if [ -s $prefix/grubenv ]; then
  9. set have_grubenv=true
  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. if [ x"${feature_menuentry_id}" = xy ]; then
  21. menuentry_id_option="--id"
  22. else
  23. menuentry_id_option=""
  24. fi
  25. export menuentry_id_option
  26. if [ "${prev_saved_entry}" ]; then
  27. set saved_entry="${prev_saved_entry}"
  28. save_env saved_entry
  29. set prev_saved_entry=
  30. save_env prev_saved_entry
  31. set boot_once=true
  32. fi
  33. function savedefault {
  34. if [ -z "${boot_once}" ]; then
  35. saved_entry="${chosen}"
  36. save_env saved_entry
  37. fi
  38. }
  39. function load_video {
  40. if [ x$feature_all_video_module = xy ]; then
  41. insmod all_video
  42. else
  43. insmod efi_gop
  44. insmod efi_uga
  45. insmod ieee1275_fb
  46. insmod vbe
  47. insmod vga
  48. insmod video_bochs
  49. insmod video_cirrus
  50. fi
  51. }
  52. if [ x$feature_default_font_path = xy ] ; then
  53. font=unicode
  54. else
  55. set root='hd0,gpt3'
  56. if [ x$feature_platform_search_hint = xy ]; then
  57. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt3' --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 19054f86-3cc7-4f42-9532-edb4a044aa4c
  58. else
  59. search --no-floppy --fs-uuid --set=root 19054f86-3cc7-4f42-9532-edb4a044aa4c
  60. fi
  61. font="/usr/share/grub/unicode.pf2"
  62. fi
  63. set gfxmode=auto
  64. if loadfont $font ; then
  65. echo
  66. fi
  67. terminal_output gfxterm
  68. if [ "${recordfail}" = 1 ] ; then
  69. set timeout=30
  70. else
  71. if [ x$feature_timeout_style = xy ] ; then
  72. set timeout_style=menu
  73. set timeout=5
  74. # Fallback normal timeout code in case the timeout_style feature is
  75. # unavailable.
  76. else
  77. set timeout=5
  78. fi
  79. fi
  80. ### END /etc/grub.d/00_header ###
  81. ### BEGIN /etc/grub.d/01_live ###
  82. if [ ! -z ${boot_once} ];then
  83. set timeout_style=countdown
  84. set load_config=load-config
  85. else
  86. set load_config=
  87. fi
  88. ### END /etc/grub.d/01_live ###
  89. ### BEGIN /etc/grub.d/05_debian_theme ###
  90. ### END /etc/grub.d/05_debian_theme ###
  91. ### BEGIN /etc/grub.d/10_linux ###
  92. function gfxmode {
  93. set gfxpayload="${1}"
  94. }
  95. set linux_gfx_mode=
  96. export linux_gfx_mode
  97. menuentry 'UnionTech OS Desktop 20 Professional GNU/Linux' --class uniontech --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-19054f86-3cc7-4f42-9532-edb4a044aa4c' {
  98. set root='hd0,gpt2'
  99. if [ x$feature_platform_search_hint = xy ]; then
  100. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 fcbaa12f-8584-4f02-aff5-adbcd762bfed
  101. else
  102. search --no-floppy --fs-uuid --set=root fcbaa12f-8584-4f02-aff5-adbcd762bfed
  103. fi
  104. if [ loongson != "loongson" ];then
  105. echo 'Loading Linux 4.19.0-loongson-3-desktop ...'
  106. fi
  107. linux /vmlinuz-4.19.0-loongson-3-desktop root=UUID=19054f86-3cc7-4f42-9532-edb4a044aa4c ro splash quiet console=tty loglevel=0
  108. if [ loongson != "loongson" ];then
  109. echo 'Loading initial ramdisk ...'
  110. fi
  111. initrd /initrd.img-4.19.0-loongson-3-desktop
  112. boot
  113. }
  114. submenu 'Advanced options for UnionTech OS Desktop 20 Professional GNU/Linux' $menuentry_id_option 'gnulinux-advanced-19054f86-3cc7-4f42-9532-edb4a044aa4c' {
  115. menuentry 'UnionTech OS Desktop 20 Professional GNU/Linux, with Linux 4.19.0-loongson-3-desktop' --class uniontech --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-loongson-3-desktop-advanced-19054f86-3cc7-4f42-9532-edb4a044aa4c' {
  116. set root='hd0,gpt2'
  117. if [ x$feature_platform_search_hint = xy ]; then
  118. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 fcbaa12f-8584-4f02-aff5-adbcd762bfed
  119. else
  120. search --no-floppy --fs-uuid --set=root fcbaa12f-8584-4f02-aff5-adbcd762bfed
  121. fi
  122. if [ loongson != "loongson" ];then
  123. echo 'Loading Linux 4.19.0-loongson-3-desktop ...'
  124. fi
  125. linux /vmlinuz-4.19.0-loongson-3-desktop root=UUID=19054f86-3cc7-4f42-9532-edb4a044aa4c ro splash quiet console=tty loglevel=0
  126. if [ loongson != "loongson" ];then
  127. echo 'Loading initial ramdisk ...'
  128. fi
  129. initrd /initrd.img-4.19.0-loongson-3-desktop
  130. boot
  131. }
  132. }
  133. ### END /etc/grub.d/10_linux ###
  134. ### BEGIN /etc/grub.d/11_deepin_ab_recovery ###
  135. ### END /etc/grub.d/11_deepin_ab_recovery ###
  136. ### BEGIN /etc/grub.d/15_linux_bar ###
  137. menuentry 'Uniontech OS Backup & Restore' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-recovery' {
  138. set root='hd0,gpt6'
  139. if [ x$feature_platform_search_hint = xy ]; then
  140. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt6' --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 de157839-4e13-4ba0-aee2-f46b8a4730e6
  141. else
  142. search --no-floppy --fs-uuid --set=root de157839-4e13-4ba0-aee2-f46b8a4730e6
  143. fi
  144. linux /doppel/vmlinuz-4.19.90 ro boot=live $load_config components toram=filesystem.squashfs locales=zh_CN.UTF-8 acpi_backlight=vendor splash quiet console=tty loglevel=0 live-media-path=doppel
  145. initrd /doppel/initrd.img-4.19.90
  146. boot
  147. }
  148. ### END /etc/grub.d/15_linux_bar ###
  149. ### BEGIN /etc/grub.d/20_linux_xen ###
  150. ### END /etc/grub.d/20_linux_xen ###
  151. ### BEGIN /etc/grub.d/30_os-prober ###
  152. ### END /etc/grub.d/30_os-prober ###
  153. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  154. ### END /etc/grub.d/30_uefi-firmware ###
  155. ### BEGIN /etc/grub.d/40_custom ###
  156. # This file provides an easy way to add custom menu entries. Simply type the
  157. # menu entries you want to add after this comment. Be careful not to change
  158. # the 'exec tail' line above.
  159. ### END /etc/grub.d/40_custom ###
  160. ### BEGIN /etc/grub.d/41_custom ###
  161. if [ -f ${config_directory}/custom.cfg ]; then
  162. source ${config_directory}/custom.cfg
  163. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  164. source $prefix/custom.cfg;
  165. fi
  166. ### END /etc/grub.d/41_custom ###