I added a payload-free package to my InstaUp2Date catalog to remove a few directories from Lion that we don’t want in our image. (I did it this way instead of in firstboot.sh because we want those directories removed before the local admin. creation package is run.)
Here’s the problem: It appears that the script in the package removed the directories from the build Mac instead of from the .dmg container that InstaDMG created for the build. That is, it acted on / instead of /Volumes/10.7\ Vanilla.dmg.
Do I specifically need to code /Volumes/10.7\ Vanilla.dmg into my script? Or should I include something in the script that determines what volume it is being executed against, and use the return value from that function instead of / in my rm commands? Perhaps ${PWD##*/} ?
Thanks if anyone knows what to do here,
-Kurt
Comments are closed