Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # GLEE USB GRUB2 Configuration
- ### https://github.com/thias/glim
- #################################
- # Required with MBR for GUI
- if [ "${grub_platform}" = "pc" ]; then
- insmod vbe
- fi
- # Required with EFI for GUI and to prevent "No video mode set" error
- if [ "${grub_platform}" = "efi" ]; then
- insmod efi_gop
- fi
- # Keep the same graphic mode for kernel booting (passed as vga=)
- # other values are "text" or any gfxmode value
- set gfxpayload=keep
- # Enable GUI
- terminal_output gfxterm
- #EFI: special characters (lines composing menu frame)
- #replaced by '?' in text _fallback_ text mode if absent
- # (useless if gfxterm is not enabled or if GUI theme loading success)
- #loadfont ascii
- insmod png
- set theme=${prefix}/themes/invader/theme.txt
- ####################################################
- ### iso in (hda,gpt3)/boot/grub/iso/archlinux.iso
- ### the remaining two partitions are set up according to https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Hybrid_UEFI_GPT_+_BIOS_GPT/MBR_boot
- set isopath=/boot/iso
- # Required to have these available in other configfile files
- export theme
- export isopath
- set imgdevpath="/dev/disk/by-label/GLIM"
- export imgdevpath
- # Menu!
- # Arch
- menuentry "Arch Linux 2017.12.01 x86_64" --class arch {
- set isofile="/boot/grub/iso/archlinux.iso"
- echo "Using Arch..."
- loopback loop $isofile
- linux (loop)/arch/boot/x86_64/vmlinuz img_dev=$imgdevpath img_loop=$isofile
- initrd (loop)/arch/boot/x86_64/archiso.img
- }
- menuentry "Shutdown" --class shutdown {
- halt
- }
- menuentry "Reboot" --class shutdown {
- reboot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement