FOG variables available during postinstall script execution
I have several post deployment scripts that run once the image has been pushed to the client. I’m trying to find out if any FOG host information is available as variables that can be used in these post install scripts. One such variable that would be handy is location. Some registry settings are configured based on the location of the system. For example one location could be NYC and another install location could be ATL. There are certain changes we need to make to the image before the OS is loaded that are dependent on its functional location. This is just one example, but I’m wondering if other deployment variables are available to these post install scripts.
@george1421 I send the host name with the load out labeled as hostname and the primary Mac of the host as mac.
I think I understand what you are saying about the kernelargs but I think those would be static entries. For example how would I access the defined mac address or hostname (as defined in FOGs database) from a postinstall script?
If you specify kernelargs for the host or hosts you want you can set them up as … newvar=haha
Create the post download script and you will have access to the any of the variables fog specifies. So as newvar is set you would call it in the script with $newvar