Revision
640
Author
wsiegrist@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

Diff

Modified: trunk/darwinbuild/darwinbuild.in (639 => 640)


--- 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