Update 'README.md'

master
D4VID 9 months ago
parent 6cf62fe24a
commit c54598f1cf

@ -18,7 +18,7 @@ bind-interfaces
dhcp-range=<your interface>,192.168.0.100,192.168.0.200
dhcp-boot=pxelinux.0
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,grubx64.efi
dhcp-boot=tag:efi-x86_64,bootx64.efi
enable-tftp
tftp-root=/srv/tftp
```
@ -29,6 +29,10 @@ tftp-root=/srv/tftp
`cp /boot/initrd.img /srv/tftp/initrd`
`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`
`dpkg-deb --fsys-tarfile grub-efi*deb | tar x ./usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed -O > /srv/tftp/grubx64.efi`
@ -41,42 +45,16 @@ tftp-root=/srv/tftp
`vim /srv/tftp/grub/grub.cfg`
```grub
set default=0
set timeout=5
menuentry "Boot Diskless Client" {
#linux /vmlinuz boot=live components netboot=nfs nfsroot=192.168.1.2:/opt/clients/live/ root=/dev/nfs rw ip=dhcp
linux /vmlinuz boot=live components ip=dhcp
initrd /initrd.img
}
```
set default="0"
#set timeout=-1
if loadfont unicode ; then
set gfxmode=auto
set locale_dir=$prefix/locale
set lang=en_US
fi
terminal_output gfxterm
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
set linux_gfx_mode=keep
export linux_gfx_mode
menuentry 'FiksOS' {
gfxmode $linux_gfx_mode
linux /vmlinux $vt_handoff quiet splash
initrd /initrd
}
```
`vim /etc/netplan/10-static.yaml`
@ -91,3 +69,18 @@ network:
addresses:
- 192.168.11.1/24
```
`systemctl edit dnsmasq.service`
```
[Unit]
After=network-online.target
Wants=network-online.target
```
`grub-mkimage -p /grub -o grubx64.efi -O x86_64-efi part_gpt part_msdos fat ext2 ntfs iso9660 loopback linux multiboot efi_gop efi_uga usb usb_keyboard uhci ohci ehci xfs configfile normal net tftp`
`cp grubx64.efi /srv/tftp/grubx64_custom.efi`
Working shell, but "no network card found"
Loading…
Cancel
Save