diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-01-18 18:29:00 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-01-18 18:29:00 +0000 |
commit | 4a7d5899d75bb5c59216af8e963534e48c932c77 (patch) | |
tree | 68d0f359fe81a4dafaeec204ac490cdfd2d46d70 /installclass.py | |
parent | 13bb088ffbff42cda9b2b7b1acdf34f2df58a3a1 (diff) | |
download | anaconda-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 'installclass.py')
-rw-r--r-- | installclass.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/installclass.py b/installclass.py index dcb41bb60..d3176ddc4 100644 --- a/installclass.py +++ b/installclass.py @@ -42,7 +42,7 @@ class BaseInstallClass: name = "base" pkgstext = "" # default to showing the upgrade option - showUpgrade = 1 # FIXME: no upgrade for now while doing yum work + showUpgrade = True # list of of (txt, grplist) tuples for task selection screen tasks = [] @@ -107,7 +107,8 @@ class BaseInstallClass: if initAll: id.partitions.reinitializeDisks = initAll - def setSteps(self, dispatch): + def setSteps(self, anaconda): + dispatch = anaconda.dispatch dispatch.setStepList( "language", "keyboard", @@ -156,8 +157,12 @@ class BaseInstallClass: if rhpl.getArch() != "i386" and rhpl.getArch() != "x86_64": dispatch.skipStep("bootloader", permanent=1) + # allow backends to disable interactive package selection + if not anaconda.backend.supportsPackageSelection: + dispatch.skipStep("tasksel", skip = 1) + # allow install classes to turn off the upgrade - if self.showUpgrade == 0: + if not self.showUpgrade or not anaconda.backend.supportsUpgrades: dispatch.skipStep("findrootparts", skip = 1) # 'noupgrade' can be used on the command line to force not looking @@ -431,7 +436,7 @@ class BaseInstallClass: return AnacondaBackend def setDefaultPartitioning(self, partitions, clear = CLEARPART_TYPE_LINUX, - doClear = 1): + doClear = 1, useLVM = True): autorequests = [ ("/", None, 1024, None, 1, 1, 1) ] bootreq = getAutopartitionBoot() @@ -444,7 +449,11 @@ class BaseInstallClass: if doClear: partitions.autoClearPartType = clear partitions.autoClearPartDrives = [] - partitions.autoPartitionRequests = autoCreateLVMPartitionRequests(autorequests) + + if useLVM: + partitions.autoPartitionRequests = autoCreateLVMPartitionRequests(autorequests) + else: + partitions.autoPartitionRequests = autoCreatePartitionRequests(autorequests) def setInstallData(self, anaconda): |