How to edit the pxe boot menu in FOG 1.2.0
-
fogsettings, advanced menü.
-
[quote=“domii666, post: 42414, member: 24204”]fogsettings, advanced menü.[/quote]
Only if you have upgraded to a SVN version, right?? Version 1.2.0 does not come with cumstomizable menu afaik!You could edit the PHP files to change the menu (ugly) or try upgrading ([url]http://www.fogproject.org/wiki/index.php/Upgrade_to_trunk[/url]). But be warned that this is not a stable release and might break things.
If you only want to remove some of the options from the menu you probably are best of with editing ‘/var/www/fog/lib/fog/BootMenu.class.php’ until the new version of FOG is being released.
-
what are you wanting to change?
-
Okay, so the boot menu is just php? That is what I was confused about. @junkhacker: I wanted to add a few more options for different images to the menu and change the background to a company background. I’ll look at the file Uncle Frank posted. Thanks and I do appreciate any responses, was just afk.
-
in the newer dev versions of fog, you can edit the boot menu right from the web interface (i’m running svn 2948 as a production server and have had no problems, ymmv). changing the background is as simple as changing the file at <web-root>/fog/service/ipxe/bg.png
-
Anyone got any examples of how to add a iso or even just the existing Clam AV scan to the boot menu via the new web interface? I’ve searched but can’t find at the moment (because I’m manually AV checking the machines that didn’t have AV when I started here last month…)
-
There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url]
-
[quote=“Uncle Frank, post: 42587, member: 28116”]There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url][/quote]
Thanks. That worked. Got the AVG ISO booting now.
If anyone is interested In Fog 1.2.0, in the fog configuration in the advanced config options text box I have this :menu
item --gap – ---------------- iPXE boot menu ----------------
item AVG AVG Antivirus scan
item Sophos Sophos Antivirus scan
item shell ipxe shell
item return return to previous menu
choose --default AVG --timeout 5000 target && goto ${target}:AVG
initrd http://${fog-ip}/${fog-webroot}/iso/avg_arl_cdi_all_120_141126a8645.iso
chain memdisk iso raw ||
goto MENU:Sophos
initrd http://${fog-ip}/${fog-webroot}/iso/sophosbootable.iso
chain memdisk iso raw ||
goto MENU:shell
shell ||
goto MENU:return
chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
prompt
goto MENUautoboot[/CODE]
Next task is to customise that iso so its got up to date definitions, sets the network and proxy appropriately and has 2 options “scan” and “custom” where scan just gets on with it (if nothing is selected) without asking loads of questions and custom gives access to the original ARL menu…
-
This example is really helpful, thanks! Is there any way to move one of the advanced items onto the main boot menu and make it the default? I work at a school district that has to implement online standardized testing in the spring, and we’ve been playing with booting an Ubuntu Live image over the network with our FOG server so that we don’t have to install any software on our Windows PCs. It would be great if we could make the Ubuntu image the default in the main menu instead of booting to hard drive, because it would automate the process a lot across our six buildings.
-
@chriscarman this can be done in the trunk version of fog from the web interface
-
@Junkhacker Awesome, thanks for the quick reply! We use fog on a daily basis in our district and I’d love to avoid downtime. How stable is the trunk version? If I upgrade to trunk, can I walk it back to 1.2.0 if there’s a problem, or would it be better to set up a separate fog server with the trunk version that we can swap in when we do online testing and need the network image booting? Sorry for being a little off-topic!
-
downgrades are not supported, i’m afraid, so make backups and be prepared to roll back to them. but, I’ve been using the trunk version 4384 (SVN 3877) in production at work for over 2 months without any problems.
-
@Junkhacker said:
downgrades are not supported, i’m afraid, so make backups and be prepared to roll back to them. but, I’ve been using the trunk version 4384 (SVN 3877) in production at work for over 2 months without any problems.
I can vouch for SVN revision 4103. I’ve been using it on the work production server for… over a month for sure. But, I’ve also been playing a lot with the very latest on a test server at work, and I use the latest at home on my personal fog server. It seems like it’s pretty solid right now for Red Hat based distros like CentOS 7 and Fedora 21.
-
@ChrisJ said:
[quote=“Uncle Frank, post: 42587, member: 28116”]There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url][/quote]
Thanks. That worked. Got the AVG ISO booting now.
If anyone is interested In Fog 1.2.0, in the fog configuration in the advanced config options text box I have this :menu
item --gap – ---------------- iPXE boot menu ----------------
item AVG AVG Antivirus scan
item Sophos Sophos Antivirus scan
item shell ipxe shell
item return return to previous menu
choose --default AVG --timeout 5000 target && goto ${target}:AVG
initrd http://${fog-ip}/${fog-webroot}/iso/avg_arl_cdi_all_120_141126a8645.iso
chain memdisk iso raw ||
goto MENU:Sophos
initrd http://${fog-ip}/${fog-webroot}/iso/sophosbootable.iso
chain memdisk iso raw ||
goto MENU:shell
shell ||
goto MENU:return
chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
prompt
goto MENUautoboot[/CODE]
Next task is to customise that iso so its got up to date definitions, sets the network and proxy appropriately and has 2 options “scan” and “custom” where scan just gets on with it (if nothing is selected) without asking loads of questions and custom gives access to the original ARL menu…
Very helpful @ChrisJ, thank you!