(self, mounted_sparsebundle, mounted_image)
Installs OS X into sparsebundle.
Installs OS X into sparsebundle.
Installs OS X into sparsebundle .
def InstallOSX(self, mounted_sparsebundle, mounted_image):
    """Installs OS X into sparsebundle."""
    install_choices = os.path.join(self.cwd, self.installer_choices)
    print 'InstallerChoices.xml: %s' % install_choices
    cmd = ['installer', '-pkg', '%s/Packages/OSInstall.mpkg' %  mounted_image,
           '-target', mounted_sparsebundle, '-applyChoiceChangesXML',
           install_choices]
    print 'Installing OS X into %s...' % mounted_sparsebundle
    (unused_stdout, unused_stderr, unused_rc) = RunProcess(cmd, stream_out=True)
    cmd = ['hdiutil', 'detach', mounted_image]
    (unused_stdout, stderr, unused_rc) = RunProcess(cmd)
    if stderr:
      print 'Failed to unmount: %s' % stderr
def InstallOSX ( self , mounted_sparsebundle , mounted_image ) : install_choices = os . path . join ( self . cwd , self . installer_choices ) print 'InstallerChoices.xml: %s' % install_choices cmd = [ 'installer' , '-pkg' , '%s/Packages/OSInstall.mpkg' % mounted_image , '-target' , mounted_sparsebundle , '-applyChoiceChangesXML' , install_choices ] print 'Installing OS X into %s...' % mounted_sparsebundle ( unused_stdout , unused_stderr , unused_rc ) = RunProcess ( cmd , stream_out = True ) cmd = [ 'hdiutil' , 'detach' , mounted_image ] ( unused_stdout , stderr , unused_rc ) = RunProcess ( cmd ) if stderr : print 'Failed to unmount: %s' % stderr