You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.2 KiB

# Network booting
without GRUB
https://www.youtube.com/watch?v=U3RC20ANomk
`apt install dnsmasq`
`/etc/dnsmasq.conf`
```
interface=<your interface>,lo
bind-interfaces
dhcp-range=<your interface>,192.168.11.101,192.168.11.200
dhcp-boot=pxelinux.0
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,syslinux.efi
enable-tftp
tftp-root=/srv/tftp
```
`mkdir -p /srv/tftp`
`apt install syslinux-common syslinux-efi`
`cd /usr/lib/syslinux/modules/efi64`
`cp ldlinux.e64 libutil.c32 menu.c32 /srv/tftp`
`cp /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi /srv/tftp`
`mkdir /srv/tftp/pxelinux.cfg`
`/srv/tftp/pxelinux.cfg/default`
```
UI menu.c32
LABEL FIKS OS
MENU LABEL FIKS
KERNEL vmlinuz
APPEND initrd=initrd.img boot=live components netboot=nfs nfsroot=192.168.11.11:/srv/nfs ro root=/dev/nfs ip=dhcp
TEXT HELP
Lmao Yeet!
ENDTEXT
```
`systemctl restart dnsmasq.service`
`apt install nfs-kernel-server`
`mkdir -p /srv/nfs/live`
`/etc/exports`
```
/srv/nfs *(ro,sync,no_root_squash,no_subtree_check)
```
`exportfs -a`
`systemctl restart nfs-kernel-server`
## Client system
`mksquashfs / /opt/fiks-image.squashfs -e /proc /sys /dev /tmp /run /mnt /media /var/cache /var/tmp /opt`