@tigervince30 Well as I see it you have 2 problems. The first one is the files are not being copied over to the target computer the second is that the pnputil is not setup to run.
I would use the
Just to keep the postdownload script portable between fog installs. Not all imaging directories are
/images path. There is nothing wrong with calling out the full path, but the standard is to use the
(Oh!!) I just saw something, you enter
/images/postdownloadscripts/fog.custominstall you missed the leading dot-space (. )
. /images/postdownloadscripts/fog.custominstall That would impact the execution of the install.
So to debug the first problem, FOG has a specific debug mode that can be used to debug post install scripts. When you schedule a deployment you would tick the debug checkbox before you hit the Schedule Task button. Then pxe boot the target computer. That will place the target computer into debug mode. After a few screens of text that you need to clear with the enter key you will be dropped to a FOS Linux command prompt. At the command prompt key in
fog and press enter to start the imaging. In debug mode the FOG install will stop at each breakpoint (debugPause) in the deployment process. This way you can watch and read error message that might happen during image deployment.
Now you might want to add an
echo statement at the beginning of the fog.custominstall script and modify it such as this.
#!/bin/bash . /usr/share/fog/lib/funcs.sh echo "Starting post install scirpt" [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
Also looking at the code, if the $postdownpath path variable is not set the entire postinstall script will abort. Its possible that the missing dot calling the script would do this (not populate that variable). That is some magic missing dot ( . ).
During debugging you can exit out of the imaging script by pressing Ctrl-C. You can restart the imaging process without having to reboot by just keying in
fog again. Your post install script should execute right after the last partition is imaged with PartClone.