|
|
@ -8,17 +8,17 @@ TODO: create squashfs image from live system
|
|
|
|
|
|
|
|
|
|
|
|
`apt install dnsmasq`
|
|
|
|
`apt install dnsmasq`
|
|
|
|
|
|
|
|
|
|
|
|
`vim /etc/dnsmasq.conf`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`mkdir -p /srv/tftp`
|
|
|
|
`mkdir -p /srv/tftp`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`vim /etc/dnsmasq.conf`
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
interface=<your interface>,lo
|
|
|
|
interface=<your interface>,lo
|
|
|
|
bind-interfaces
|
|
|
|
bind-interfaces
|
|
|
|
dhcp-range=<your interface>,192.168.0.100,192.168.0.200
|
|
|
|
dhcp-range=<your interface>,192.168.0.100,192.168.0.200
|
|
|
|
dhcp-boot=pxelinux.0
|
|
|
|
dhcp-boot=pxelinux.0
|
|
|
|
dhcp-match=set:efi-x86_64,option:client-arch,7
|
|
|
|
dhcp-match=set:efi-x86_64,option:client-arch,7
|
|
|
|
dhcp-boot=tag:efi-x86_64,bootx64.efi
|
|
|
|
dhcp-boot=tag:efi-x86_64,grubx64.efi
|
|
|
|
enable-tftp
|
|
|
|
enable-tftp
|
|
|
|
tftp-root=/srv/tftp
|
|
|
|
tftp-root=/srv/tftp
|
|
|
|
```
|
|
|
|
```
|
|
|
@ -27,11 +27,7 @@ tftp-root=/srv/tftp
|
|
|
|
|
|
|
|
|
|
|
|
`cp /boot/vmlinuz /srv/tftp/vmlinuz`
|
|
|
|
`cp /boot/vmlinuz /srv/tftp/vmlinuz`
|
|
|
|
|
|
|
|
|
|
|
|
`cp /boot/initrd.img /srv/tftp/initrd`
|
|
|
|
`cp /boot/initrd.img /srv/tftp/initrd.img`
|
|
|
|
|
|
|
|
|
|
|
|
`apt download shim-signed`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`dpkg-deb --fsys-tarfile shim-signed*deb | tar x ./usr/lib/shim/shimx64.efi.signed.latest -O > /srv/tftp/bootx64.efi`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`apt download grub-efi-amd64-signed`
|
|
|
|
`apt download grub-efi-amd64-signed`
|
|
|
|
|
|
|
|
|
|
|
|