Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
2018-04-16, 06:51
Post: #4
RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
(2018-04-16 06:36)fatallerror Wrote:  I run ipxe from syslinux.

Now i must to have one config file in syslinux and 3 config files in ipxe.

iPXE has script files, not config files (this might seem like a small difference, or the same thing, but it changes the concept of thinking quite a lot)

You haven't considered moving to iPXE based menues instead?


(2018-04-16 06:36)fatallerror Wrote:  I desire to have one config file in syslinux and one config file in ipxe.

Code:
LABEL
menu label Image1
kernel /ipxe/ipxe.lkrn  http://10.80.1.44/Image1.iso
initrd /ipxe/loadimage.ipxe

loadimage.ipxe:
[code]#!ipxe
dhcp
sanboot --no-describe %Arg1%

It is possible to send in arguments over the cmdline, but that replaces the script, but in your case you can just do:
Code:
LABEL
menu label Image1
kernel /ipxe/ipxe.lkrn dhcp && sanboot --no-describe  http://10.80.1.44/Image1.iso

The alternative would be to have kernel /ipxe/ipxe.lkrn dhcp && set imagename=image1.iso && chain http://10.80.1.44/loadimage.ipxe

where loadimage.ipxe would have:
sanboot --no-describe ${imagename}

But as I mentioned, moving to iPXE based menues is probably the best actual solution for this. (this allows you to only use iPXE and skip PXELINUX completely)

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - NiKiZe - 2018-04-16 06:51



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