Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ "${grub_platform}" == "efi" ]; then
- set _UEFI_ARCH="${grub_cpu}"
- if [ "${grub_cpu}" == "x86_64" ]; then
- set _SPEC_UEFI_ARCH="x64"
- fi
- if [ "${grub_cpu}" == "i386" ]; then
- set _SPEC_UEFI_ARCH="ia32"
- fi
- fi
- insmod part_gpt
- insmod part_msdos
- # Include fat fs module - required for uefi systems.
- insmod fat
- insmod fat
- insmod ext2
- insmod ext2
- insmod search_fs_file
- insmod search_fs_uuid
- insmod search_label
- insmod linux
- insmod chain
- set pager="1"
- # set debug="all"
- set locale_dir="${prefix}/locale"
- if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then
- insmod all_video
- else
- if [ "${grub_platform}" == "efi" ]; then
- insmod efi_gop
- insmod efi_uga
- fi
- if [ "${grub_platform}" == "pc" ]; then
- insmod vbe
- insmod vga
- fi
- insmod video_bochs
- insmod video_cirrus
- fi
- insmod font
- 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
- 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
- if [ -e "(${usr_part})/share/grub/unicode.pf2" ]; then
- set _fontfile="(${usr_part})/share/grub/unicode.pf2"
- else
- if [ -e "(${root_part})/usr/share/grub/unicode.pf2" ]; then
- set _fontfile="(${root_part})/usr/share/grub/unicode.pf2"
- else
- if [ -e "${prefix}/fonts/unicode.pf2" ]; then
- set _fontfile="${prefix}/fonts/unicode.pf2"
- fi
- fi
- fi
- if loadfont "${_fontfile}" ; then
- insmod gfxterm
- set gfxmode="auto"
- terminal_input console
- terminal_output gfxterm
- fi
- # DEVICE DETAILS: /dev/sda4 PARTUUID=79a1fb33-8ff9-492d-852c-62ff6f41c641 PARTLABEL=Apple_HFS_Untitled_2 UUID=3611-31D2 LABEL=boot
- # DEVICE DETAILS: /dev/sda5 PARTUUID=d587bf9c-918c-419c-9ffc-381e28502760 PARTLABEL= UUID=5d5235f8-18fd-4f67-a03f-b5ca89a7545c LABEL=/
- # DEVICE DETAILS: /dev/sda6 PARTUUID=463de156-8450-49b3-86f3-9710e6ce33f5 PARTLABEL= UUID=45b98534-50ee-4441-8595-7c48c0df8641 LABEL=/home
- # (0) Arch Linux
- menuentry "Arch Linux" {
- set gfxpayload="keep"
- search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 3611-31D2
- linux /vmlinuz-linux-lts root=PARTUUID=d587bf9c-918c-419c-9ffc-381e28502760 rootflags=,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4 ro
- initrd /initramfs-linux-lts.img
- }
- # (1) Arch Linux Fallback
- menuentry "Arch Linux Fallback" {
- set gfxpayload="keep"
- search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 3611-31D2
- linux /vmlinuz-linux-lts root=PARTUUID=d587bf9c-918c-419c-9ffc-381e28502760 rootflags=,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4 ro
- initrd /initramfs-linux-lts-fallback.img
- }
- if [ "${grub_platform}" == "efi" ]; then
- ## UEFI Shell 2.0
- ## Will work only in grub(2) uefi
- #menuentry "UEFI ${_UEFI_ARCH} Shell 2.0 - For Spec. Ver. >=2.3 systems" {
- # search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 70D6-1701
- # chainloader /efi/tools/shell${_SPEC_UEFI_ARCH}.efi
- #}
- ## UEFI Shell 1.0
- ## Will work only in grub(2) uefi
- #menuentry "UEFI ${_UEFI_ARCH} Shell 1.0 - For Spec. Ver. <2.3 systems" {
- # search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 70D6-1701
- # chainloader /efi/tools/shell${_SPEC_UEFI_ARCH}_old.efi
- #}
- fi
- if [ "${grub_platform}" == "efi" ]; then
- ## Windows x86_64 UEFI
- ## Will work only in grub(2) uefi x86_64
- #menuentry \"Microsoft Windows x86_64 UEFI-GPT\" {
- # insmod part_gpt
- # insmod fat
- # insmod search_fs_uuid
- # insmod chain
- # search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 70D6-1701
- # chainloader /efi/Microsoft/Boot/bootmgfw.efi
- #}
- fi
- if [ "${grub_platform}" == "pc" ]; then
- ## Windows BIOS
- ## Will work only in grub(2) bios
- #menuentry \"Microsoft Windows 7 BIOS-MBR\" {
- # insmod part_msdos
- # insmod ntfs
- # insmod search_fs_uuid
- # insmod ntldr
- # search --fs-uuid --no-floppy --set=root 69B235F6749E84CE
- # ntldr /bootmgr
- #}
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement