Advertisement
Guest User

Untitled

a guest
Jan 15th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1.  
  2. if [ "${grub_platform}" == "efi" ]; then
  3. set _UEFI_ARCH="${grub_cpu}"
  4.  
  5. if [ "${grub_cpu}" == "x86_64" ]; then
  6. set _SPEC_UEFI_ARCH="x64"
  7. fi
  8.  
  9. if [ "${grub_cpu}" == "i386" ]; then
  10. set _SPEC_UEFI_ARCH="ia32"
  11. fi
  12. fi
  13.  
  14.  
  15. insmod part_gpt
  16. insmod part_msdos
  17.  
  18. # Include fat fs module - required for uefi systems.
  19. insmod fat
  20.  
  21. insmod fat
  22. insmod ext2
  23. insmod ext2
  24.  
  25. insmod search_fs_file
  26. insmod search_fs_uuid
  27. insmod search_label
  28.  
  29. insmod linux
  30. insmod chain
  31.  
  32. set pager="1"
  33. # set debug="all"
  34.  
  35. set locale_dir="${prefix}/locale"
  36.  
  37.  
  38. if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then
  39. insmod all_video
  40. else
  41. if [ "${grub_platform}" == "efi" ]; then
  42. insmod efi_gop
  43. insmod efi_uga
  44. fi
  45.  
  46. if [ "${grub_platform}" == "pc" ]; then
  47. insmod vbe
  48. insmod vga
  49. fi
  50.  
  51. insmod video_bochs
  52. insmod video_cirrus
  53. fi
  54.  
  55. insmod font
  56.  
  57. search --fs-uuid --no-floppy --set=usr_part --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 d587bf9c-918c-419c-9ffc-381e28502760
  58. search --fs-uuid --no-floppy --set=root_part --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 d587bf9c-918c-419c-9ffc-381e28502760
  59.  
  60. if [ -e "(${usr_part})/share/grub/unicode.pf2" ]; then
  61. set _fontfile="(${usr_part})/share/grub/unicode.pf2"
  62. else
  63. if [ -e "(${root_part})/usr/share/grub/unicode.pf2" ]; then
  64. set _fontfile="(${root_part})/usr/share/grub/unicode.pf2"
  65. else
  66. if [ -e "${prefix}/fonts/unicode.pf2" ]; then
  67. set _fontfile="${prefix}/fonts/unicode.pf2"
  68. fi
  69. fi
  70. fi
  71.  
  72. if loadfont "${_fontfile}" ; then
  73. insmod gfxterm
  74. set gfxmode="auto"
  75.  
  76. terminal_input console
  77. terminal_output gfxterm
  78. fi
  79.  
  80.  
  81. # DEVICE DETAILS: /dev/sda4 PARTUUID=79a1fb33-8ff9-492d-852c-62ff6f41c641 PARTLABEL=Apple_HFS_Untitled_2 UUID=3611-31D2 LABEL=boot
  82. # DEVICE DETAILS: /dev/sda5 PARTUUID=d587bf9c-918c-419c-9ffc-381e28502760 PARTLABEL= UUID=5d5235f8-18fd-4f67-a03f-b5ca89a7545c LABEL=/
  83. # DEVICE DETAILS: /dev/sda6 PARTUUID=463de156-8450-49b3-86f3-9710e6ce33f5 PARTLABEL= UUID=45b98534-50ee-4441-8595-7c48c0df8641 LABEL=/home
  84.  
  85.  
  86. # (0) Arch Linux
  87. menuentry "Arch Linux" {
  88. set gfxpayload="keep"
  89. search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 3611-31D2
  90. linux /vmlinuz-linux-lts root=PARTUUID=d587bf9c-918c-419c-9ffc-381e28502760 rootflags=,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4 ro
  91. initrd /initramfs-linux-lts.img
  92. }
  93.  
  94.  
  95. # (1) Arch Linux Fallback
  96. menuentry "Arch Linux Fallback" {
  97. set gfxpayload="keep"
  98. search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 3611-31D2
  99. linux /vmlinuz-linux-lts root=PARTUUID=d587bf9c-918c-419c-9ffc-381e28502760 rootflags=,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4 ro
  100. initrd /initramfs-linux-lts-fallback.img
  101. }
  102.  
  103.  
  104. if [ "${grub_platform}" == "efi" ]; then
  105.  
  106. ## UEFI Shell 2.0
  107. ## Will work only in grub(2) uefi
  108. #menuentry "UEFI ${_UEFI_ARCH} Shell 2.0 - For Spec. Ver. >=2.3 systems" {
  109. # search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 70D6-1701
  110. # chainloader /efi/tools/shell${_SPEC_UEFI_ARCH}.efi
  111. #}
  112.  
  113. ## UEFI Shell 1.0
  114. ## Will work only in grub(2) uefi
  115. #menuentry "UEFI ${_UEFI_ARCH} Shell 1.0 - For Spec. Ver. <2.3 systems" {
  116. # search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 70D6-1701
  117. # chainloader /efi/tools/shell${_SPEC_UEFI_ARCH}_old.efi
  118. #}
  119.  
  120. fi
  121.  
  122.  
  123. if [ "${grub_platform}" == "efi" ]; then
  124.  
  125. ## Windows x86_64 UEFI
  126. ## Will work only in grub(2) uefi x86_64
  127. #menuentry \"Microsoft Windows x86_64 UEFI-GPT\" {
  128. # insmod part_gpt
  129. # insmod fat
  130. # insmod search_fs_uuid
  131. # insmod chain
  132. # search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 70D6-1701
  133. # chainloader /efi/Microsoft/Boot/bootmgfw.efi
  134. #}
  135.  
  136. fi
  137.  
  138.  
  139. if [ "${grub_platform}" == "pc" ]; then
  140.  
  141. ## Windows BIOS
  142. ## Will work only in grub(2) bios
  143. #menuentry \"Microsoft Windows 7 BIOS-MBR\" {
  144. # insmod part_msdos
  145. # insmod ntfs
  146. # insmod search_fs_uuid
  147. # insmod ntldr
  148. # search --fs-uuid --no-floppy --set=root 69B235F6749E84CE
  149. # ntldr /bootmgr
  150. #}
  151.  
  152. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement