@JGallo I have to step out of the office for a few minutes, but I will update you when I get back. You may need to do some advanced debugging.
Since you are messing with the registration process and there is no debugging process around registration we will force the issue. What you need to do is set this kernel parameter in the global settings for FOG
isdebug=yes This will instruct the FOS engine to load and then drop to the command prompt on the target computer. This will allow you to test different parts of your code in a controlled execution. Once you have your script perfected then we can work on delivery to the target computer.
Understand that by putting the
isdebug=yes it will have an impact on image deployment until the value is removed. But for what you need to do next is the easiest way to get it working.
When you get dropped to the command prompt on the FOS engine, key in
fog to start the registration process, if you hit an error press ctrl-C to exit. Fix the issue and then key in
fog again to start the debugging session over again.
Just be aware you are waking on uncharted territory so there may be a few pits along the way. Just stick with it and we will get it worked out.