Home Forums Software InstaDMG Getting payload-free package scripts to behave in InstaDMG

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #381696
    ktappe
    Participant

    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

    #381716
    macinandy
    Participant

    Hi Kurt, have you tried $3 as referred to in this post?

    [url]https://www.afp548.com/forum/viewtopic.php?forum=45&showtopic=20154[/url]

    thanks

    #381724
    ktappe
    Participant

    $3 did the trick, Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed