Editing the 1.0.1 PXE Menu
-
Hello all!
In my last FOG setup in .32, I had the menu background changed, removed the descriptions of the functions, and changed the wording for some of the functions themselves through an easily edited text file. If I recall, the file was called default.something and was located somewhere inside the pxelinux folder.
Now, with the new FOG 1.0.1 moving things around, I’m a bit lost. I found where the background goes after a bit of digging, but I’m wondering where I go to change the font color, highlight color, edit the text, etc. I know about the webUI PXE menu edit field, but this just adds extra text to the bottom… not what I’m looking to do right now.
Any help is appreciated!
-
This is listed as FOG 0.33b, but it uses the same menu that 1.0.1 does, you can use it to help you understand and if you have questions, please post there.
[URL=‘http://fogproject.org/forum/threads/fog-0-33b-edit-pxe-menu.10403/’]U[/URL]se junk hackers link below!!!
-
what you’re talking about would require significant editing to php class files
-
I have created a wiki page for the Advanced boot menu stuff
[url]http://www.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options[/url] -
Thanks for the input. I read that exact thread right before I posted… I suppose my question was whether or not these minor changes could be done without editing PHP code (something I admit I know very little about). If it isn’t possible to just edit a line or two in a file to make these changes, I’ll just deal with it. It’s just a cosmetic thing, anyways.
Thanks!
-
[quote=“GBison, post: 28720, member: 18212”]Hello all!
In my last FOG setup in .32, I had the menu background changed, removed the descriptions of the functions, and changed the wording for some of the functions themselves through an easily edited text file. If I recall, the file was called default.something and was located somewhere inside the pxelinux folder.
Now, with the new FOG 1.0.1 moving things around, I’m a bit lost. I found where the background goes after a bit of digging, but I’m wondering where I go to change the font color, highlight color, edit the text, etc. I know about the webUI PXE menu edit field, but this just adds extra text to the bottom… not what I’m looking to do right now.
Any help is appreciated![/quote]
If you really want to edit the menu, there’s no major issue, and it is (more or less) still editing one simple text file.
The file is now located in:
/var/www/{FOGWEBDIR}/lib/fog/BootMenu.class.phpJust be cognizant of what you’re editing. iPXE is a bit finicky about syntax. If you’re dealing with gap’s and have dashes in them, you need to have two prepending dashes: (example below)
[code]item --gap – ---------------------------[/code]You’ll break ipxe if you have:
[code]item --gap ---------------------------[/code]Here’s ipxe’s scripting documentation:
[url]http://ipxe.org/scripting[/url]Here’s ipxe’s command information:
[url]http://ipxe.org/cmd[/url][COLOR=#000000]It’s pretty simple once you look at it, but it may take a little bit to understand how it’s being build. The old /tftpboot/pxelinux.cfg/default file was useful, but it wasn’t dynamic. That’s where moving to ipxe made things so much easier. While confusing at first, it’s much simpler and, from a programmatic standpoint, nice to work with as you can add anything you need dynamically.[/COLOR]