Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Variable in boot menu
2019-10-18, 10:00
Post: #13
RE: Variable in boot menu
I'm using DNSMASQ with proxy relay to my router.

This what I tried:

dnsmasq.conf
Code:
#===============================================================
# Configuration file for dnsmasq
#===============================================================
# Disable DNS Server (DNS already provide by the router)
port=0

# Enable DHCP logging
log-dhcp

# Respond to PXE requests for the specified network;
# run as DHCP proxy
dhcp-range=192.168.10.0, proxy

dhcp-option=17,/srv/tftp

#Detect the client architecture
dhcp-match=set:x86PC, option:client-arch, 0 #BIOS
dhcp-match=set:UEFI32, option:client-arch, 6 #UEFI32
dhcp-match=set:UEFI64, option:client-arch, 7 #UEFI64
dhcp-match=set:UEFI64, option:client-arch, 9 #EBC ->use the same bootloader as UEFI64

# Load different PXE boot image depending on client architecture (when runing not as a proxy DHCP)
#dhcp-boot=tag:x86PC, lpxelinux.0
#dhcp-boot=tag:UEFI32, snponly.efi
#dhcp-boot=tag:UEFI64, snponly.efi
dhcp-boot=tag:UEFI64, snponly.efi

# Load different PXE boot image depending on client architecture (when runing as a proxy DHCP)
#pxe-service=tag:x86PC, X86PC, "BIOS Network Boot", lpxelinux.0
#pxe-service=tag:UEFI32, BC_EFI, "UEFI32 Network Boot", snponly.efi
pxe-service=tag:UEFI64, X86-64_EFI, "UEFI64 Network Boot", snponly.efi

## Activate TFTP and set the root directory
enable-tftp
tftp-no-blocksize
tftp-root=/srv/tftp


And new boot efi:
Code:
#!ipxe

dhcp ||

echo ${3}
echo ${root-path}
sleep 5

set menu-url ${root-path}/menu.ipxe

#debugging lines below
echo initrd ${menu-url}
initrd ${menu-url} && goto success || goto failure

:success
echo Success!
sleep 5
goto command

:failure
echo Failure!
sleep 5

:command
#Actual Command...
chain ${menu-url} ||

#For Troubleshooting after Failure...
shell

But no more.

echo ${root-path} show me 192.168.10.1

And echo ${root-path}/menu.ipxe show me /menu.ipxe ... no such file or directory

Thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[solved] Variable in boot menu - fred - 2019-10-11, 21:37
RE: Variable in boot menu - NiKiZe - 2019-10-13, 02:26
RE: Variable in boot menu - fred - 2019-10-14, 20:49
RE: Variable in boot menu - NiKiZe - 2019-10-14, 23:20
RE: Variable in boot menu - fred - 2019-10-15, 08:03
RE: Variable in boot menu - cckp - 2019-10-15, 11:38
RE: Variable in boot menu - fred - 2019-10-15, 12:27
RE: Variable in boot menu - fred - 2019-10-17, 07:56
RE: Variable in boot menu - fred - 2019-10-17, 08:19
RE: Variable in boot menu - fred - 2019-10-18 10:00
RE: Variable in boot menu - fred - 2019-10-18, 11:06
RE: Variable in boot menu - fred - 2019-10-18, 12:36
RE: Variable in boot menu - fred - 2019-10-20, 15:07



User(s) browsing this thread: 2 Guest(s)