From 802874f416cf8177dd3adf0b7b701a36a8b37b6d Mon Sep 17 00:00:00 2001 From: Patryk Zawadzki Date: Fri, 29 Aug 2008 19:50:46 +0000 Subject: [PATCH] - no longer used Changed files: anaconda-installclass-pld.py -> 1.7 anaconda-mk-images -> 1.7 anaconda-mk-images.i386 -> 1.3 anaconda-scrubtree -> 1.4 anaconda-upd-instroot -> 1.13 --- anaconda-installclass-pld.py | 172 ----- anaconda-mk-images | 846 --------------------- anaconda-mk-images.i386 | 151 ---- anaconda-scrubtree | 75 -- anaconda-upd-instroot | 1342 ---------------------------------- 5 files changed, 2586 deletions(-) delete mode 100644 anaconda-installclass-pld.py delete mode 100644 anaconda-mk-images delete mode 100644 anaconda-mk-images.i386 delete mode 100644 anaconda-scrubtree delete mode 100644 anaconda-upd-instroot diff --git a/anaconda-installclass-pld.py b/anaconda-installclass-pld.py deleted file mode 100644 index d63f1cd..0000000 --- a/anaconda-installclass-pld.py +++ /dev/null @@ -1,172 +0,0 @@ -from installclass import BaseInstallClass -from constants import * -from filer import * -from flags import flags -import os -import iutil -import types -import yuminstall -try: - import instnum -except ImportError: - instnum = None - -import gettext -_ = lambda x: gettext.ldgettext("anaconda", x) - -import logging -log = logging.getLogger("anaconda") - -# custom installs are easy :-) -class InstallClass(BaseInstallClass): - # name has underscore used for mnemonics, strip if you dont need it - id = "pld" - name = N_("PLD Linux") - pixmap = "custom.png" - _description = N_("The default installation of %s includes a set of " - "software applicable for general internet usage. " - "What additional tasks would you like your system " - "to include support for?") - _descriptionFields = (productName,) - sortPriority = 10000 - allowExtraRepos = True - - repopaths = { "base": ["PLD/i686/RPMS", "PLD/noarch/RPMS"], } - taskMap = {'client': [ - (N_("GNOME Desktop"), [ - "gnome", - "gnome_complete", - "gnome_games", - "gnome_themes", - ]), - (N_("KDE Desktop"), [ - "kde_kdepim", - "kde_kdeedu", - "kde_multimedia", - "kde_koffice", - "kde_network", - "kde_graphics", - "kde_admin", - "kde_games", - "kde_look" - ]), - (N_("Basic IceWM"), [ - "icewm", - ]), - (N_("WindowMaker"), [ - "wmaker", - ]), - (N_("General Development Tools"), [ - "devel" - ]), - (N_("Java Development Tools"), [ - "java" - ]), - ]} - - def setInstallData(self, anaconda): - BaseInstallClass.setInstallData(self, anaconda) - if not anaconda.isKickstart: - BaseInstallClass.setDefaultPartitioning(self, - anaconda.id.partitions, - CLEARPART_TYPE_LINUX) - - def setGroupSelection(self, anaconda): - grps = anaconda.backend.getDefaultGroups(anaconda) - map(lambda x: anaconda.backend.selectGroup(x), grps) - - def setSteps(self, anaconda): - dispatch = anaconda.dispatch - BaseInstallClass.setSteps(self, anaconda); - dispatch.skipStep("partition") - dispatch.skipStep("regkey") - - # for rhel, we're putting the metadata under productpath - def getPackagePaths(self, uri): - rc = {} - for (name, path) in self.repopaths.items(): - if not type(uri) == types.ListType: - uri = [uri,] - if not type(path) == types.ListType: - path = [path,] - - lst = [] - for i in uri: - for p in path: - lst.append("%s/%s" % (i, p)) - - rc[name] = lst - - log.info("package paths is %s" %(rc,)) - return rc - - def handleRegKey(self, key, intf, interactive = True): - self.repopaths = { "base": "%s" %(productPath,) } - self.tasks = self.taskMap[productPath.lower()] - self.installkey = key - - try: - inum = instnum.InstNum(key) - except Exception, e: - if True or not BETANAG: # disable hack keys for non-beta - # make sure the log is consistent - log.info("repopaths is %s" %(self.repopaths,)) - raise - else: - inum = None - - if inum is not None: - # make sure the base products match - if inum.get_product_string().lower() != productPath.lower(): - raise ValueError, "Installation number incompatible with media" - - for name, path in inum.get_repos_dict().items(): - # virt is only supported on i386/x86_64. so, let's nuke it - # from our repo list on other arches unless you boot with - # 'linux debug' - if name.lower() == "virt" and ( \ - rhpl.getArch() not in ("x86_64","i386") - and not flags.debug): - continue - self.repopaths[name.lower()] = path - log.info("Adding %s repo" % (name,)) - - else: - key = key.upper() - # simple and stupid for now... if C is in the key, add Clustering - # if V is in the key, add Virtualization. etc - if key.find("C") != -1: - self.repopaths["cluster"] = "Cluster" - log.info("Adding Cluster option") - if key.find("S") != -1: - self.repopaths["clusterstorage"] = "ClusterStorage" - log.info("Adding ClusterStorage option") - if key.find("W") != -1: - self.repopaths["workstation"] = "Workstation" - log.info("Adding Workstation option") - if key.find("V") != -1: - self.repopaths["virt"] = "VT" - log.info("Adding Virtualization option") - - for repo in self.repopaths.values(): - if not self.taskMap.has_key(repo.lower()): - continue - - for task in self.taskMap[repo.lower()]: - if task not in self.tasks: - self.tasks.append(task) - self.tasks.sort() - - log.info("repopaths is %s" %(self.repopaths,)) - - def getBackend(self): - return yuminstall.YumBackend - - def __init__(self, expert): - BaseInstallClass.__init__(self, expert) - - self.repopaths = { "base": "%s" %(productPath,) } - - # minimally set up tasks in case no key is provided - self.tasks = self.taskMap[productPath.lower()] - diff --git a/anaconda-mk-images b/anaconda-mk-images deleted file mode 100644 index 369feb7..0000000 --- a/anaconda-mk-images +++ /dev/null @@ -1,846 +0,0 @@ -#!/bin/bash -LANG=C - -PATH=$PATH:/sbin:/usr/sbin -IMAGEUUID=$(date +%Y%m%d%H%M).$(uname -i) - -usage () { - echo "usage: mk-images