def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = self.machine.make_fstab() ready_base_for_install(self.target, self.cfg, self.suite, fstab) if self.cfg.is_it_true('installer', 'use_devices_tarball'): runlog('echo extracting devices tarball') self._extract_devices_tarball() else: runlog('echo using MAKEDEV to make devices') self.make_generic_devices() self.make_disk_devices() if self._raid_setup: mdpath = join(self.target, 'etc/mdadm') makepaths(mdpath) mdconfname = join(mdpath, 'mdadm.conf') mdconf = file(mdconfname, 'w') for diskname in self._raid_drives: devices = ['%s*' % d for d in self._raid_drives[diskname]] line = 'DEVICE %s' % ' '.join(devices) mdconf.write(line + '\n') mdconf.close() mdconf = file(mdconfname, 'a') arrdata = commands.getoutput('mdadm -E --config=%s -s' % mdconfname) mdconf.write(arrdata + '\n') mdconf.write('\n') mdconf.close() self._mount_target_proc()
def ready_base_for_install(self): self._check_bootstrap() fstab = '#unconfigured for chroot install\n' ready_base_for_install(self.target, self.defenv, self.suite, fstab) self._mount_target_proc() self._check_target_proc() cmd = self.command('apt-get', '-y update', chroot=True) runvalue = runlog(cmd) if runvalue: raise InstallError, 'problem updating the apt lists.' if os.environ.has_key('FAKE_START_STOP_DAEMON'): make_fake_start_stop_daemon(self.target) self._base_ready = True
def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = self.machine.make_fstab() ready_base_for_install(self.target, self.cfg, self.suite, fstab) if self._raid_setup: mdpath = join(self.target, "etc/mdadm") makepaths(mdpath) mdconf = file(join(mdpath, "mdadm.conf"), "w") for diskname in self._raid_drives: devices = ["%s*" % d for d in self._raid_drives[diskname]] line = "DEVICE %s" % " ".join(devices) mdconf.write(line + "\n") arrdata = commands.getoutput("mdadm -E -s") mdconf.write(arrdata + "\n") mdconf.write("\n") mdconf.close()
def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = self.machine.make_fstab() ready_base_for_install(self.target, self.cfg, self.suite, fstab) if self._raid_setup: mdpath = join(self.target, 'etc/mdadm') makepaths(mdpath) mdconf = file(join(mdpath, 'mdadm.conf'), 'w') for diskname in self._raid_drives: devices = ['%s*' % d for d in self._raid_drives[diskname]] line = 'DEVICE %s' % ' '.join(devices) mdconf.write(line + '\n') arrdata = commands.getoutput('mdadm -E -s') mdconf.write(arrdata + '\n') mdconf.write('\n') mdconf.close()
def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = self.machine.make_fstab() ready_base_for_install(self.target, self.cfg, self.suite, fstab) self.make_generic_devices() self.make_disk_devices() if self._raid_setup: mdpath = join(self.target, 'etc/mdadm') makepaths(mdpath) mdconfname = join(mdpath, 'mdadm.conf') mdconf = file(mdconfname, 'w') for diskname in self._raid_drives: devices = ['%s*' % d for d in self._raid_drives[diskname]] line = 'DEVICE %s' % ' '.join(devices) mdconf.write(line + '\n') mdconf.close() mdconf = file(mdconfname, 'a') arrdata = commands.getoutput('mdadm -E --config=%s -s' % mdconfname) mdconf.write(arrdata + '\n') mdconf.write('\n') mdconf.close()
def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = self.machine.make_fstab() ready_base_for_install(self.target, self.cfg, self.suite, fstab)
def ready_base_for_install(self): cfg = self.installer.defenv ready_base_for_install(self.target, self.conn, self._suite)
def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = "#unconfigured for chroot install\n" ready_base_for_install(self.target, self.cfg, self.suite, fstab)
def ready_base_for_install(self): self._check_bootstrap() self._check_installer() fstab = '#unconfigured for chroot install\n' ready_base_for_install(self.target, self.cfg, self.suite, fstab)
def ready_base_for_install(self): ready_base_for_install(self.target, self.paellarc, self._suite)