Skip to content

Instantly share code, notes, and snippets.

@fcenobi
Forked from waja/cloudatcost_netboot
Created October 25, 2019 22:10
Show Gist options
  • Save fcenobi/12a66f7e8c40133085dbd06b30a2d3be to your computer and use it in GitHub Desktop.
Save fcenobi/12a66f7e8c40133085dbd06b30a2d3be to your computer and use it in GitHub Desktop.
wget -c "https://boot.netboot.xyz/ipxe/netboot.xyz.lkrn" -O /boot/netboot.xyz.lkrn && \
cat > /etc/grub.d/40_custom <<EOF
#!/bin/sh
exec tail -n +3 \$0
menuentry 'netboot.xyz' {
set root='hd0,msdos1'
linux16 /netboot.xyz.lkrn
}
EOF
update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment