Rik got me startted on this one. See the thread here.
So far I haven't done much and won't post full details and the patch here until it's working. If you wish to see/test how/if things are progressing you can check the patch progress. The patch code is hosted on my GitHub account - repo here.
The notes here should perhaps ideally be in the wiki, but I'd like some feedback and ideas so thought it better to post here.
IMO rather than use the generic foginstall.sh it would be better to script these bits into the conf file of the patch.
-As FOG is designed to be installed to a clean Ubuntu (or other) install I am currently working on a Core install, but seeing as FOG is actually LAMP based it makes more sense to use TKL LAMP as a base.
-Some parts of the install (such as setting IP address) need to be in firstboot scripts. Using a Python firstboot script (based on the TKL inithooks scripts), reasonable defaults could be set with the option to preseed answers instead.
-By default IP setting etc is in fog/lib/commmon/input.sh
-Some modifications to lib/ubuntu/config.sh and lib/ubuntu/function.sh are required (because of different package names - see FOG wiki link above).
-FOG recommends a static IP so TKL/confconsole ideally should be configured to default to the IP given at firstboot (rather than DHCP).
-DHCP option should also be included in firstboot. Most (if not all) networks will already have a DHCP server, but IMO (other than large corporate/enterprise/institution type networks) you would be best served by using the FOG server for DHCP (minimises need for end-user config - making it more turnkey!) So firstboot option: either use FOG DHCP - only need to disable existing DHCP or use existing DHCP but need to configure it to forward PXE to FOG. Instructions will need to be included in the TKL FOG aplliance wiki.