def doPostInstall(self, anaconda): has_iscsi_disk = False # See if we have an iscsi disk. If we do we rerun mkinitrd, as # the initrd might need iscsi-initiator-utils, and chances are # it was not installed yet the first time mkinitrd was run, as # mkinitrd does not require it. root = anaconda.id.storage.rootDevice disks = anaconda.id.storage.devicetree.getDevicesByType("iscsi") for disk in disks: if root.dependsOn(disk): has_iscsi_disk = True break #always copy the firmware files from DD self.copyFirmware(anaconda) if anaconda.id.extraModules or has_iscsi_disk: for (n, arch, tag) in self.kernelVersionList(anaconda.rootPath): 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"))
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): #always copy the firmware files from DD self.copyFirmware(anaconda) if anaconda.extraModules: for (n, arch, tag) in self.kernelVersionList(anaconda.rootPath): packages.recreateInitrd(n, anaconda.rootPath) #copy RPMS for d in glob.glob(DD_RPMS): shutil.copytree(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 IOError, e: pass
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)