Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. ### BEGIN /etc/grub.d/00_header ###
  2. if [ -s $prefix/grubenv ]; then
  3. load_env
  4. fi
  5. if [ "${next_entry}" ] ; then
  6. set default="${next_entry}"
  7. set next_entry=
  8. save_env next_entry
  9. set boot_once=true
  10. else
  11. set default="0"
  12. fi
  13.  
  14. if [ x"${feature_menuentry_id}" = xy ]; then
  15. menuentry_id_option="--id"
  16. else
  17. menuentry_id_option=""
  18. fi
  19.  
  20. export menuentry_id_option
  21.  
  22. if [ "${prev_saved_entry}" ]; then
  23. set saved_entry="${prev_saved_entry}"
  24. save_env saved_entry
  25. set prev_saved_entry=
  26. save_env prev_saved_entry
  27. set boot_once=true
  28. fi
  29.  
  30. function savedefault {
  31. if [ -z "${boot_once}" ]; then
  32. saved_entry="${chosen}"
  33. save_env saved_entry
  34. fi
  35. }
  36.  
  37. function load_video {
  38. if [ x$feature_all_video_module = xy ]; then
  39. insmod all_video
  40. else
  41. insmod efi_gop
  42. insmod efi_uga
  43. insmod ieee1275_fb
  44. insmod vbe
  45. insmod vga
  46. insmod video_bochs
  47. insmod video_cirrus
  48. fi
  49. }
  50.  
  51. if [ x$feature_default_font_path = xy ] ; then
  52. font=unicode
  53. else
  54. insmod part_msdos
  55. insmod cryptodisk
  56. insmod luks
  57. insmod gcry_rijndael
  58. insmod gcry_rijndael
  59. insmod gcry_sha512
  60. insmod btrfs
  61. cryptomount -u d0cc5a26a48f466ca00d545424c3f5f9
  62. set root='cryptouuid/d0cc5a26a48f466ca00d545424c3f5f9'
  63. if [ x$feature_platform_search_hint = xy ]; then
  64. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/d0cc5a26a48f466ca00d545424c3f5f9' 2f5c91b7-3345-4e09-9364-6e3f34727b43
  65. else
  66. search --no-floppy --fs-uuid --set=root 2f5c91b7-3345-4e09-9364-6e3f34727b43
  67. fi
  68. font="/Gentoo/usr/share/grub/unicode.pf2"
  69. fi
  70.  
  71. if loadfont $font ; then
  72. set gfxmode=auto
  73. load_video
  74. insmod gfxterm
  75. set locale_dir=$prefix/locale
  76. set lang=en_US
  77. insmod gettext
  78. fi
  79. terminal_output gfxterm
  80. if [ x$feature_timeout_style = xy ] ; then
  81. set timeout_style=menu
  82. set timeout=5
  83. # Fallback normal timeout code in case the timeout_style feature is
  84. # unavailable.
  85. else
  86. set timeout=5
  87. fi
  88. ### END /etc/grub.d/00_header ###
  89.  
  90. ### BEGIN /etc/grub.d/10_linux ###
  91.  
  92. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2f5c91b7-3345-4e09-9364-6e3f34727b43' {
  93. load_video
  94. if [ "x$grub_platform" = xefi ]; then
  95. set gfxpayload=keep
  96. fi
  97. insmod gzio
  98. insmod part_msdos
  99. insmod cryptodisk
  100. insmod luks
  101. insmod gcry_rijndael
  102. insmod gcry_rijndael
  103. insmod gcry_sha512
  104. insmod btrfs
  105. cryptomount -u d0cc5a26a48f466ca00d545424c3f5f9
  106. set root='cryptouuid/d0cc5a26a48f466ca00d545424c3f5f9'
  107. if [ x$feature_platform_search_hint = xy ]; then
  108. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/d0cc5a26a48f466ca00d545424c3f5f9' 2f5c91b7-3345-4e09-9364-6e3f34727b43
  109. else
  110. search --no-floppy --fs-uuid --set=root 2f5c91b7-3345-4e09-9364-6e3f34727b43
  111. fi
  112. echo 'Loading Linux x86_64-4.4.2-hardened-grsec ...'
  113. linux /Gentoo/boot/kernel-genkernel-x86_64-4.4.2-hardened-grsec root=UUID=2f5c91b7-3345-4e09-9364-6e3f34727b43 ro rootflags=subvol=Gentoo cryptdevice=/dev/sda1:cryptroot:allow-discards rootflags=subvol=Gentoo quiet
  114. echo 'Loading initial ramdisk ...'
  115. initrd /Gentoo/boot/initramfs-genkernel-x86_64-4.4.2-hardened-grsec
  116. }
  117. ### END /etc/grub.d/10_linux ###
  118.  
  119. ### BEGIN /etc/grub.d/20_linux_xen ###
  120. ### END /etc/grub.d/20_linux_xen ###
  121.  
  122. ### BEGIN /etc/grub.d/30_os-prober ###
  123. ### END /etc/grub.d/30_os-prober ###
  124.  
  125. ### BEGIN /etc/grub.d/40_custom ###
  126. # This file provides an easy way to add custom menu entries. Simply type the
  127. # menu entries you want to add after this comment. Be careful not to change
  128. # the 'exec tail' line above.
  129. menuentry "Arch" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2f5c91b7-3345-4e09-9364-6e3f34727b43' {
  130. load_video
  131. set gfxpayload=keep
  132. insmod gzio
  133. insmod part_msdos
  134. insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha512
  135. insmod btrfs
  136. set root='cryptouuid/d0cc5a26a48f466ca00d545424c3f5f9'
  137. if [ x$feature_platform_search_hint = xy ]; then
  138. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/d0cc5a26a48f466ca00d545424c3f5f9' 2f5c91b7-3345-4e09-9364-6e3f34727b43
  139. else
  140. search --no-floppy --fs-uuid --set=root 2f5c91b7-3345-4e09-9364-6e3f34727b43
  141. fi
  142. echo 'Loading Arch Linux ...'
  143. linux /Arch/boot/vmlinuz-linux-grsec root=UUID=2f5c91b7-3345-4e09-9364-6e3f34727b43 rw rootflags=subvol=Arch cryptdevice=/dev/sda1:cryptroot:allow-discards rootflags=subvol=Arch quiet
  144. echo 'Loading initial ramdisk ...'
  145. initrd /Arch/boot/initramfs-linux-grsec.img
  146. }
  147. ### END /etc/grub.d/40_custom ###
  148.  
  149. ### BEGIN /etc/grub.d/41_custom ###
  150. if [ -f ${config_directory}/custom.cfg ]; then
  151. source ${config_directory}/custom.cfg
  152. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  153. source $prefix/custom.cfg;
  154. fi
  155. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement