-
-
Save PonyMaLoveJackMa/90b63f28afe423874954c28cf408c823 to your computer and use it in GitHub Desktop.
Install netboot.xyz.lkrn into grub
This file contains hidden or 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
| 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