Re: hdiutil attach fails under some repeatable circumstances
Re: hdiutil attach fails under some repeatable circumstances
- Subject: Re: hdiutil attach fails under some repeatable circumstances
- From: Brant Sears <email@hidden>
- Date: Mon, 22 Oct 2007 10:37:30 -0400
The problem turned out to be that when I would log out of my ssh session, the bootstrap namespace is deactivated and so hdiutil fails to be able to marshall some distributed objects that uses as "helpers".
And so the solution is to startup my script in the context of the startup item (using /usr/libexec/StartupItemContext) so that it has a global bootstrap namespace that isn't deactivated when I close the ssh session into the server.
That was that answer I got from DTS. And apparently that solves the problem (i.e. it works now).
This one was well worth the DTS incident. I was under the impression that I was somehow using hdiutil in an incorrect way. Turns out I was right.
Brant On Oct 22, 2007, at 10:32 AM, Eric Slosser wrote: Does the process of attaching your disk image display any GUI? If so, perhaps you're running into the lack of a login context.
See TN2083 "Daemons and Agents", <http://developer.apple.com/technotes/tn2005/tn2083.html> On Oct 19, 2007, at 10:39 AM, Brant Sears wrote: However, once I log out of my server box (which is actually just a G4 Mac mini running standard Tiger which I'm using to do formal builds and host a little web page for the builds), the hdiutil attach call fails. At this point, I don't see the actual error message, but my script tests for whether the volume is mounted and it reports a failure.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden