Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
 def bootstrap_target(self):
     self._check_mounted()
     self._check_installer()
     runlog(debootstrap(self.suite, self.target, self.debmirror))
     self._bootstrapped = True
Beispiel #6
0
 def bootstrap_target(self):
     self._check_mounted()
     self._check_installer()
     runlog(debootstrap(self.suite, self.target, self.debmirror))
     self._bootstrapped = True
Beispiel #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