iPXE out of memory or something?
|
2012-10-21, 14:38
(This post was last modified: 2012-10-21 14:59 by Torgeir.)
Post: #1
|
|||
|
|||
iPXE out of memory or something?
How much memory does iPXE "have"? If I reload to a new php?with variables too many times, iPXE crash.
Using latest iPXE built from git (as of today). Specifically ipxe.pxe with EMBED=script With "script" Code: #!ipxe This is my example: With OR "choose xxx && goto xxx || " On the 14 th run, after selected on the first menu, it redirects me straight to :failed. Without OR "choose xxx && goto xxx " I get Error: No such file or directory http://ipxe.org/err/2d02803b Working example: http://127.0.0.1/test.php PHP Code: <?php Why is this not working on the 14th time? Why would I want to do this over and over again? If I have user input that I want PHP to be able to work with, this was the only way I could get it to work. I problably dont have to chain to another page 14 times, but was just curious why it did not work the 14th time. As of now. I have configured adLDAP, and the use of SSH, after an login. So we can authenticate userinput from iPXE login, in Active Directory, SSH to a linux box, run "ldapsearch -h dc ....." and look for our Admin group. The reason I use SSH, was that I could not get adLDAPs built in fetch user/group info to work. If we find this user in admin group, they can install a new computer. Regular users may not |
|||
2012-10-21, 18:40
Post: #2
|
|||
|
|||
RE: iPXE out of memory or something?
(2012-10-21 14:38)Torgeir Wrote: How much memory does iPXE "have"? If I reload to a new php?with variables too many times, iPXE crash. Use the (as yet undocumented) "--replace" option to the "chain" command. This causes iPXE to do the equivalent of exec() on the new script, i.e. the new script completely replaces the calling script rather than being nested within it. You may also be interested in the "--autofree" option, which will cause a script to be "imgfree"d automatically after it completes executing. For example: Code: chain -ar http://my.web.server/replacement_script.ipxe Michael |
|||
2012-10-21, 18:57
Post: #3
|
|||
|
|||
RE: iPXE out of memory or something?
That did it
Thank you very much. --Torgeir |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)