Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i (/showthread.php?tid=11133) |
Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - fatallerror - 2018-04-14 21:14 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. RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - NiKiZe - 2018-04-15 10:43 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 RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - fatallerror - 2018-04-16 06:36 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 RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - NiKiZe - 2018-04-16 06:51 (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) RE: Is it posible to use variable arguments (parameters) when run ipxe and then pars it i - fatallerror - 2018-04-16 09:32 Great. Thanks! |