I have dnsmasq in proxy mode, serving pxe service and tftp server using this config:
port=0 log-dhcp log-queries log-facility=/var/log/dnsmasq.log dhcp-range=192.168.0.0,proxy enable-tftp tftp-root=/tftp pxe-service=x86-64_EFI,boot, grub/bootx64.efi
Using this configuration. Grub loads fine but has wrong prefix, net_default_server and pxe_default_server values. They are set to 192.168.0.1, which is IP adrress of router providing DHCP. When i manualy set prefix and root and run the
normal command. The config loads and everything works fine.
I am using the grubnetx64.efi.signed file provided by ubuntu, with shim for secure boot.
How does grub determines the value for these variables?
Can i permanently change them?