Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Variable in boot menu
2019-10-18, 11:06
Post: #15
RE: Variable in boot menu
Sorry, same result.
Error
echo ${3} show me 192.168.10.1
echo ${17} is empty

initrd http:///menu.ipxe

Failure! (ipxe.org/err/3e11618e)

And that what I tried now:

My snponly.efi built with:
Code:
#!ipxe

dhcp ||

echo ${3}
echo ${17}
echo ${66}
sleep 5

set menu-url http://${66}/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

because show 66 return me the right IP of my pxe-server.

And It's works.

echo ${3} show me 192.168.10.1
echo ${17} empty
echo ${66} show me 192.168.10.118

But I'm not feel good with this solution. But maybe you can explain me. This morning (for me) I don't know dhcp-option before you show me.
Why option 66 show me the right IP instead of 192.168.10.1 like in dnsmasq.conf?!
Does I need to change something to have a "right classical" configuration?

Thanks and sorry for distrub, I would like to have good config.
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: 1 Guest(s)