summaryrefslogtreecommitdiffstats
path: root/backend.py
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 /backend.py
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 'backend.py')
-rw-r--r--backend.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/backend.py b/backend.py
index a4bca125c..50a90e211 100644
--- a/backend.py
+++ b/backend.py
@@ -37,6 +37,10 @@ class AnacondaBackend:
self.instLog = None
self.modeText = ""
+ # some backends may not support upgrading
+ self.supportsUpgrades = True
+ self.supportsPackageSelection = False
+
def doPreSelection(self, intf, id, instPath):
pass
@@ -44,7 +48,7 @@ class AnacondaBackend:
pass
def doPreInstall(self, anaconda):
- pass
+ self.initLog(anaconda.id, anaconda.rootPath)
def doPostInstall(self, anaconda):
sys.stdout.flush()
@@ -52,11 +56,15 @@ class AnacondaBackend:
syslog.stop()
def doInstall(self, anaconda):
+ log.warning("doInstall not implemented for backend!")
pass
def initLog(self, id, instPath):
upgrade = id.getUpgrade()
+ if not os.path.isdir(instPath + "/root"):
+ iutil.mkdirChain(instPath + "/root")
+
if upgrade:
logname = '/root/upgrade.log'
else:
@@ -99,7 +107,7 @@ class AnacondaBackend:
self.modeText = _("Installing %s\n")
def kernelVersionList(self):
- pass
+ return []
def doInitialSetup(self, anaconda):
pass
@@ -174,6 +182,6 @@ def doBasePackageSelect(anaconda):
def writeConfiguration(anaconda):
log.info("Writing main configuration")
if not flags.test:
- anaconda.backend.writeConfiguration()
anaconda.id.write(anaconda)
+ anaconda.backend.writeConfiguration()