Last active
July 25, 2018 15:19
-
-
Save belano/2c911786b92a4503ef568ad9f3edc142 to your computer and use it in GitHub Desktop.
Grub2 iso menu entries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
menuentry "Windows 8 UEFI" { | |
search --file --no-floppy --set=root /efi/Microsoft/Boot/bootmgfw.efi | |
chainloader (${root})/efi/Microsoft/Boot/bkpbootmgfw.efi | |
} | |
menuentry "ISO Clonezilla live" { | |
set isofile="/isos/clonezilla-live-2.5.0-25-amd64.iso" | |
set root=(hd0,gpt10) | |
loopback loop $isofile | |
linux (loop)/live/vmlinuz boot=live live-config nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile union=overlay | |
initrd (loop)/live/initrd.img | |
} | |
menuentry "Boot-Repair Disk ISO 64bit" { | |
set isofile="/isos/boot-repair-disk-64bit.iso" | |
set root=(hd0,gpt10) | |
insmod part_gpt | |
loopback loop $isofile | |
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile nomodeset | |
initrd (loop)/casper/initrd.lz | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment