예제 #1
0
 def debootstrap_target(self):
     suite = self.installer.suite
     debmirror = self.installer.debmirror
     cmd = debootstrap(suite, self.target, debmirror)
     info = self.installer.log.info
     info('running debootstrap with cmd %s' % cmd)
     runvalue = runlog(debootstrap(self.installer.suite, self.target, self.installer.debmirror))
     if runvalue:
         raise InstallError, 'problems bootstrapping with %s' % cmd
예제 #2
0
 def debootstrap_target(self):
     suite = self.installer.suite
     debmirror = self.installer.debmirror
     cmd = debootstrap(suite, self.target, debmirror)
     info = self.installer.log.info
     info('running debootstrap with cmd %s' % cmd)
     runvalue = runlog(
         debootstrap(self.installer.suite, self.target,
                     self.installer.debmirror))
     if runvalue:
         raise InstallError, 'problems bootstrapping with %s' % cmd
예제 #3
0
 def _run_bootstrap(self, mirror, suite):
     self._check_target_exists()
     runvalue = runlog(debootstrap(suite, self.target, mirror))
     if runvalue:
         raise InstallError, 'bootstrapping %s on %s failed.' % (suite, self.target)
     else:
         self._bootstrapped = True
예제 #4
0
 def _run_bootstrap(self, mirror, suite):
     self._check_target_exists()
     runvalue = runlog(debootstrap(suite, self.target, mirror))
     if runvalue:
         raise InstallError, 'bootstrapping %s on %s failed.' % (
             suite, self.target)
     else:
         self._bootstrapped = True
예제 #5
0
 def bootstrap_target(self):
     self._check_mounted()
     self._check_installer()
     runlog(debootstrap(self.suite, self.target, self.debmirror))
     self._bootstrapped = True
예제 #6
0
 def bootstrap_target(self):
     self._check_mounted()
     self._check_installer()
     runlog(debootstrap(self.suite, self.target, self.debmirror))
     self._bootstrapped = True
예제 #7
0
 def _bootstrap_with_debootstrap(self, suite):
     mirror = self.defenv.get('installer', 'http_mirror')
     cmd = debootstrap(suite, self.target, mirror)
     retval = subprocess.call(cmd, shell=True)
     if not retval:
         raise InstallError, 'debootstrap of target failed %d' % retval