Skip to content

Instantly share code, notes, and snippets.

@waja
Last active October 28, 2022 16:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save waja/d1fe88c370f6200c538cfebcfb9233dd to your computer and use it in GitHub Desktop.
Save waja/d1fe88c370f6200c538cfebcfb9233dd 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
@divinity76
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment