Skip to content

Instantly share code, notes, and snippets.

@vathpela
Last active October 29, 2020 10:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vathpela/e721e0ed7d6ade6a9444e7a94b66a4da to your computer and use it in GitHub Desktop.
Save vathpela/e721e0ed7d6ade6a9444e7a94b66a4da to your computer and use it in GitHub Desktop.
grub-https.cfg
set default="0"
function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
# this assumes the http(s) server has the netinst iso explode (and chmod a+r'd)
# at http://server.local/~pjones/f28-ws-netinst/ . So public_html/ has under it:
# f28-ws-netinst/
# f28-ws-netinst/EFI
# f28-ws-netinst/EFI/BOOT
# f28-ws-netinst/EFI/BOOT/BOOTIA32.EFI
# f28-ws-netinst/EFI/BOOT/BOOTX64.EFI
# f28-ws-netinst/EFI/BOOT/fonts
# f28-ws-netinst/EFI/BOOT/fonts/unicode.pf2
# f28-ws-netinst/EFI/BOOT/grubia32.efi
# f28-ws-netinst/EFI/BOOT/grubx64.efi
# f28-ws-netinst/EFI/BOOT/mmia32.efi
# f28-ws-netinst/EFI/BOOT/mmx64.efi
# f28-ws-netinst/EFI/BOOT/grub.cfg
# f28-ws-netinst/images
# f28-ws-netinst/images/pxeboot
# f28-ws-netinst/images/pxeboot/initrd.img
# f28-ws-netinst/images/pxeboot/vmlinuz
# f28-ws-netinst/images/install.img
#
# $http_url is set by grub to be the protocol://hostname of the machine specified by dhcp.
# $http_path is set to the directory portion of the path
#
# i.e. this file itself is http://www.example.com/~pjones/f28-ws-netinst/grub2.cfg
#
linuxefi $http_path/images/pxeboot/vmlinuz inst.stage2=$http_url console=ttyS0,115200n81 inst.vnc inst.sshd norhgb
initrdefi $http_path/images/pxeboot/initrd.img
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment