Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
|
2018-04-14, 21:14
Post: #1
|
|||
|
|||
Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
Hi
Is it posible to use variable arguments (parameters) when run ipxe and then pars it in script? I need load some iso images, but write script for each is not good idea. It will be better to run its in one script by specifying the path to the file as an argument. |
|||
2018-04-15, 10:43
Post: #2
|
|||
|
|||
RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
I don't really understand your use-case
What iPXE binary are you using and how do you start it? Those builds of iPXE that supports arguments from commandline (only ipxe.lkrn) would parse it as a script Use GitHub Discussions VRAM bin |
|||
2018-04-16, 06:36
Post: #3
|
|||
|
|||
RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
I run ipxe from syslinux.
Now i must to have one config file in syslinux and 3 config files in ipxe. default: Code: LABEL image1.ipxe: Code: #!ipxe Code: #!ipxe Code: #!ipxe I desire to have one config file in syslinux and one config file in ipxe. default: Code: LABEL loadimage.ipxe: Code: #!ipxe |
|||
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. 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. 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 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 |
|||
2018-04-16, 09:32
Post: #5
|
|||
|
|||
RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i
Great. Thanks!
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)