site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcnSbAX3x0seJC6SRJ2wgQbTVST2FAAB0ofA Thread-topic: Use of hdiutil in a launchdaemon? I came up with the same idea, and it does in fact, avoid the issue. We needn't be using journaled on this disk image anyway. -----Original Message----- From: Soren Spies [mailto:sspies@apple.com] Sent: Friday, May 08, 2009 11:19 PM To: Nathan Herring Cc: Dev Darwin Subject: Re: Use of hdiutil in a launchdaemon? On May 8, 2009, at 16:46, Nathan Herring wrote:
diskimages-helper[xxx:yyy] _checkJournalBeforeCopy: trying to DISABLE journaling on disk2s2
As Damien mentioned, the bootstrap contexts are different when running "in the background" (whether it be from 'cron', with 'nohup', or in a LaunchDaemon) so many subsystems that expect certain services or user contexts may not behave correctly. In this particular case, it looks like you're running into the fact that we use 'diskutil' to disable journaling during the copy phase of creating a disk image from a source folder. A workaround might be to pass '-fs HFS+' to 'hdiutil' instead of letting it default to matching the source filesystem (which sounds like it is HFS+J). -- Soren Spies CoreOS::DiskImages _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Nathan Herring