[darwinbuild-changes] [640] trunk/darwinbuild/darwinbuild.in
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 16 08:51:50 PST 2009
Revision: 640
http://trac.macosforge.org/projects/darwinbuild/changeset/640
Author: wsiegrist at apple.com
Date: 2009-11-16 08:51:50 -0800 (Mon, 16 Nov 2009)
Log Message:
-----------
Create buildroot disk images with root/wheel ownership. Attach images with owners on.
Submitted by: Benjamin Huntsman
Modified Paths:
--------------
trunk/darwinbuild/darwinbuild.in
Modified: trunk/darwinbuild/darwinbuild.in
===================================================================
--- trunk/darwinbuild/darwinbuild.in 2009-11-14 01:04:14 UTC (rev 639)
+++ trunk/darwinbuild/darwinbuild.in 2009-11-16 16:51:50 UTC (rev 640)
@@ -183,7 +183,7 @@
else
echo "Creating build root disk image ..."
DMGVOLUME="BuildRoot_${build}_${stamp}"
- hdiutil create -size 1t -fs HFSX -quiet \
+ hdiutil create -size 1t -fs HFSX -quiet -uid 0 -gid 0 \
-volname $DMGVOLUME \
$DMGFILE
ln -s "/Volumes/${DMGVOLUME}" BuildRoot
@@ -237,7 +237,7 @@
stat -L $BuildRoot >> /dev/null 2>&1
if [ $? -eq 1 ]; then
echo "*** Attaching build root disk image ..."
- hdiutil attach $DMGFILE -readwrite
+ hdiutil attach $DMGFILE -readwrite -owners on
if [ $? -ne 0 ]; then
echo "Error: Unable to attach sparse disk image";
exit 70
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20091116/e743fa86/attachment.html>
More information about the darwinbuild-changes
mailing list