Skip to content

Instantly share code, notes, and snippets.

@PonyMaLoveJackMa
Forked from AndersonIncorp/netboot.xyz.md
Last active October 30, 2020 01:57
Show Gist options
  • Select an option

  • Save PonyMaLoveJackMa/90b63f28afe423874954c28cf408c823 to your computer and use it in GitHub Desktop.

Select an option

Save PonyMaLoveJackMa/90b63f28afe423874954c28cf408c823 to your computer and use it in GitHub Desktop.
Install netboot.xyz.lkrn into grub
apt install wget -y
wget https://boot.netboot.xyz/ipxe/netboot.xyz.lkrn -O /netboot.xyz.lkrn
cat >> /etc/grub.d/40_custom <<EOF
#/etc/grub.d/40_custom
menuentry "netboot.xyz.lkrn" {
linux16 (hd0,msdos1)/netboot.xyz.lkrn # /boot is (hd0,msdos1) drive
}
EOF
grub2-mkconfig -o /boot/grub2/grub.cfg
grub-mkconfig -o /boot/grub/grub.cfg
#reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment