summaryrefslogtreecommitdiffstats
path: root/installclasses
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-01-18 18:29:00 +0000
committerJeremy Katz <katzj@redhat.com>2007-01-18 18:29:00 +0000
commit4a7d5899d75bb5c59216af8e963534e48c932c77 (patch)
tree68d0f359fe81a4dafaeec204ac490cdfd2d46d70 /installclasses
parent13bb088ffbff42cda9b2b7b1acdf34f2df58a3a1 (diff)
downloadanaconda-4a7d5899d75bb5c59216af8e963534e48c932c77.tar.gz
anaconda-4a7d5899d75bb5c59216af8e963534e48c932c77.tar.xz
anaconda-4a7d5899d75bb5c59216af8e963534e48c932c77.zip
2007-01-18 Jeremy Katz <katzj@redhat.com>
* syslogd.py (InstSyslog.start): Ensure that we have a syslogd or don't try to start. Otherwise, we end up hanging things * yuminstall.py (YumBackend.__init__): yum installs can do package selection * livecd.py: Add live CD image copy backend and install method. * installclasses/fedora.py: Handle installclass API changes; allow livecd method * installclass.py (BaseInstallClass.setSteps): Take anaconda instead of dispatch as an argument; use so that the backend upgrade allowing + package selection can work (BaseInstallClass.setDefaultPartitioning): Make it easier to default to no-LVM * kickstart.py (Kickstart.setSteps): Tweak for calling change * upgradeclass.py (InstallClass.setSteps): Likewise. * installclasses/rhel.py (InstallClass.setSteps): Likewise. * anaconda: Pass anaconda to instClass.setSteps; don't depend on the existence of /mnt/runtime/... with x_already_set * backend.py (AnacondaBackend.__init__): Let the backend define whether or not upgrades are supported (AnacondaBackend.doPreInstall): postInstall kills the log, start it in the pre (AnacondaBackend.initLog): Ensure the dir we want to use exists (writeConfiguration): Write instdata before backend bits
Diffstat (limited to 'installclasses')
-rw-r--r--installclasses/fedora.py12
-rw-r--r--installclasses/rhel.py3
2 files changed, 11 insertions, 4 deletions
diff --git a/installclasses/fedora.py b/installclasses/fedora.py
index d069dc338..94b2c563e 100644
--- a/installclasses/fedora.py
+++ b/installclasses/fedora.py
@@ -40,14 +40,20 @@ class InstallClass(BaseInstallClass):
grps = anaconda.backend.getDefaultGroups(anaconda)
map(lambda x: anaconda.backend.selectGroup(x), grps)
- def setSteps(self, dispatch):
- BaseInstallClass.setSteps(self, dispatch);
- dispatch.skipStep("partition")
+ def setSteps(self, anaconda):
+ BaseInstallClass.setSteps(self, anaconda);
+ anaconda.dispatch.skipStep("partition")
def getMethod(self, methodstr):
+ if methodstr.startswith("livecd://"):
+ import livecd
+ return livecd.LiveCDImageMethod
return BaseInstallClass.getMethod(self, methodstr)
def getBackend(self, methodstr):
+ if methodstr.startswith("livecd://"):
+ import livecd
+ return livecd.LiveCDCopyBackend
return yuminstall.YumBackend
def __init__(self, expert):
diff --git a/installclasses/rhel.py b/installclasses/rhel.py
index 4f89031c6..fa20c31d9 100644
--- a/installclasses/rhel.py
+++ b/installclasses/rhel.py
@@ -36,7 +36,8 @@ class InstallClass(BaseInstallClass):
grps = anaconda.backend.getDefaultGroups(anaconda)
map(lambda x: anaconda.backend.selectGroup(x), grps)
- def setSteps(self, dispatch):
+ def setSteps(self, anaconda):
+ dispatch = anaconda.dispatch
BaseInstallClass.setSteps(self, dispatch);
dispatch.skipStep("partition")
dispatch.skipStep("regkey", skip = 0)