(self)
Mounts OS X installer disk.
Mounts OS X installer disk.
Mounts OS X installer disk .
def MountOSXInstallESD(self):
    """Mounts OS X installer disk."""
    baseimage_path = os.path.join(self.cwd, BUILD,
                                  'BaseOS/Mac OS X Install DVD.dmg')
    cmd = ['hdiutil', 'attach', baseimage_path]
    print 'Mounting installer disk %s' % baseimage_path
    (stdout, stderr, unused_rc) = RunProcess(cmd)
    if stderr:
      print 'Unable to mount %s: %s' % (baseimage_path, stderr)
      raise SystemExit
    else:
      return stdout.split('\n')[-2].split('\t')[-1]
def MountOSXInstallESD ( self ) : baseimage_path = os . path . join ( self . cwd , BUILD , 'BaseOS/Mac OS X Install DVD.dmg' ) cmd = [ 'hdiutil' , 'attach' , baseimage_path ] print 'Mounting installer disk %s' % baseimage_path ( stdout , stderr , unused_rc ) = RunProcess ( cmd ) if stderr : print 'Unable to mount %s: %s' % ( baseimage_path , stderr ) raise SystemExit else : return stdout . split ( '\n' ) [ - 2 ] . split ( '\t' ) [ - 1 ]