Talk:Firstboot Package Guide
Note: I am going to rewrite this guide using Iceberg in the near future. For now, see changes made to guide to fix the package using PackageMaker. I would avoid using the method below if at all possible. PackageMaker works if you set the permissions correctly, but you must take care to do so manually. Iceberg retains the permissions, so I will rewrite the guide using it when I get the time.
Note: these notes were to answer a few questions on afp548: http://www.afp548.com/forum/viewtopic.php?showtopic=27798&mode=&show=20&page=2 concerning a firstboot.pkg with instadmg. Nate thanks for all your work and I look forward to reading the iceberg guide.
I have been having problems with setting the owner:group and permissions on the launchd plist so Allister suggested that we just use the postflight script (which is executed after the files are in place) to make any changes to these files instead of leaving it up to packagemaker. gregs example can be found here:http://managingosx.wordpress.com/2010/02/18/payload-free-package-template/
so for example:
chown root:wheel /Library/LaunchDaemons/your.plist.file
will change the owner and group of the launchd plist to root and wheel
and to change the permissions:
chmod 0644 /Library/LaunchDaemons/your.plist.file
and about the $1 and $3. Allister was saying that he does not use packagemaker to move any of his files and he has the postflight script do everything. to do that you would have to put all of your files in the content/resources folder of the pkg. then in the postflight script to copy to the launchd you could use the following command:
cp $1/Contents/Resources/your.plist.file $3/Library/LaunchDaemons
The reason you have to do this is because the disk image instadmg is working on is mounted in some tmp folder so there is no way to hard code the direct path to either your launchd or where you want it to go.
Nate - This isn't the case. Composer handles making the firstboot package just fine. I will retool this guide using another packaging app once I get the chance.
If any body has corrections or wants to clarify I think bw38 and I could both benefit. and bw38 let us know if you have any more questions.