Before I start messing around with this idea, I wanted to see if anyone else has done it so I can shamelessly borrow some ideas/workflow.
Right now, we have a scenario where we bare-metal image Macs using a USB stick with Casper Imaging, and the technician has to log into the system after the imaging is completed to do a little data entry (asset number, site location, deployed user) via a Self Service script that also performs the computer naming/AD bind/wifi setup.
I'd like to do all that data-entry up front. Has anyone been able to run a script from a USB boot stick/Netboot as part of the Imaging workflow, capture data, and somehow get that data to the imaged drive so a policy can read it and operate on it when imaging is done? Having it prompt right after the imaging configuration kicks off is ideal rather than waiting until the image and packages are all copied over, to save tech time.
We have another workflow for thin imaging, but obviously bare-metal has a place when you need to wipe/reimage/redeploy and I'd like to make that process more automated.
Edit: Looks like I found a method to do this with a Before script and After script, the tricky part I am not happy with is identifying the volume that was imaged to write the data to. In a standard USB use case I can expect disk0s2 is the right one, but if someone images a target drive via Thunderbolt that wouldn't work.