def doPostInstall(self, anaconda): import rpm self._doFilesystemMangling(anaconda) # setup /etc/rpm/ for the post-install environment iutil.writeRpmPlatform(anaconda.rootPath) storage.writeEscrowPackets(anaconda) packages.rpmSetupGraphicalSystem(anaconda) # now write out the "real" fstab and mtab anaconda.id.storage.write(anaconda.rootPath) f = open(anaconda.rootPath + "/etc/mtab", "w+") f.write(anaconda.id.storage.mtab) f.close() # copy over the modprobe.conf if os.path.exists("/etc/modprobe.conf"): shutil.copyfile("/etc/modprobe.conf", anaconda.rootPath + "/etc/modprobe.conf") # set the same keyboard the user selected in the keyboard dialog: anaconda.id.keyboard.write(anaconda.rootPath) # rebuild the initrd(s) vers = self.kernelVersionList(anaconda.rootPath) for (n, arch, tag) in vers: packages.recreateInitrd(n, anaconda.rootPath)
def doPostInstall(self, anaconda): import rpm self._doFilesystemMangling(anaconda) storage.writeEscrowPackets(anaconda) packages.rpmSetupGraphicalSystem(anaconda) # now write out the "real" fstab and mtab anaconda.storage.write() # copy over the modprobe.conf if os.path.exists("/etc/modprobe.conf"): shutil.copyfile("/etc/modprobe.conf", ROOT_PATH + "/etc/modprobe.conf") # set the same keyboard the user selected in the keyboard dialog: anaconda.keyboard.write(ROOT_PATH) # rebuild the initrd(s) vers = self.kernelVersionList() for (n, arch, tag) in vers: packages.recreateInitrd(n, ROOT_PATH)
def doPostInstall(self, anaconda): import rpm self._doFilesystemMangling(anaconda) storage.writeEscrowPackets(anaconda) packages.rpmSetupGraphicalSystem(anaconda) # now write out the "real" fstab and mtab anaconda.storage.write(anaconda.rootPath) f = open(anaconda.rootPath + "/etc/mtab", "w+") f.write(anaconda.storage.mtab) f.close() # copy over the modprobe.conf if os.path.exists("/etc/modprobe.conf"): shutil.copyfile("/etc/modprobe.conf", anaconda.rootPath + "/etc/modprobe.conf") # rebuild the initrd(s) vers = self.kernelVersionList(anaconda.rootPath) for (n, arch, tag) in vers: packages.recreateInitrd(n, anaconda.rootPath)
#copy RPMS for d in glob.glob(DD_RPMS): try: shutil.copytree(d, anaconda.rootPath + "/root/" + os.path.basename(d)) except OSError: log.error("Couldn't copy %s to %s" % (d, anaconda.rootPath + "/root/" + os.path.basename(d))) #copy modules and firmware if os.path.exists(DD_ALL): try: shutil.copytree(DD_ALL, anaconda.rootPath + "/root/DD") except OSError, e: log.error("Couldn't copy %s to %s" % (DD_ALL, anaconda.rootPath + "/root/DD")) storage.writeEscrowPackets(anaconda) sys.stdout.flush() syslog.stop() def doInstall(self, anaconda): log.warning("doInstall not implemented for backend!") raise NotImplementedError def initLog(self, id, instPath): upgrade = id.getUpgrade() if not os.path.isdir(instPath + "/root"): iutil.mkdirChain(instPath + "/root") if upgrade: