• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: hdiutil attach fails under some repeatable circumstances
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >hdiutil attach fails under some repeatable circumstances (From: Brant Sears <email@hidden>)
 >Re: hdiutil attach fails under some repeatable circumstances (From: Eric Slosser <email@hidden>)

  • Prev by Date: Re: hdiutil attach fails under some repeatable circumstances
  • Next by Date: Re: Using Boost in XCode
  • Previous by thread: Re: hdiutil attach fails under some repeatable circumstances
  • Next by thread: Re: Getting Touched Resources to be Recopied
  • Index(es):
    • Date
    • Thread