Skip to content

Commit

Permalink
Give time for automatic login & automatic AFP mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Cunnie committed Jul 12, 2012
1 parent c61f0bb commit 123c453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 1_reset_machine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
end
end

# allow time for automated login & mounting of disks to work
sleep 20
puts "detaching (unmounting) #{$newly_imaged_partition} imaging partition"
# ignore spurious 'hdiutil: couldn't unmount "disk0" - Resource busy' messages
system("ssh #{ENV['IMAGER_USER']}@#{ENV['IMAGER_HOST']} 'sudo hdiutil detach #{$newly_imaged_partition}'")
Expand Down

0 comments on commit 123c453

Please sign in to comment.