summaryrefslogtreecommitdiffstats
path: root/backend.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't copy the install.img over in single media cases (#216167).Chris Lumens2008-08-271-0/+56
| | | | | | The only reason we copy the install.img over to the hard drive is because we need to free up the CD/DVD device for switching media. If we don't need to do that, then there's no reason to do the copy.
* Start an errors.py that contains all these small exception classes.Chris Lumens2008-06-051-7/+0
|
* raise "NotImplementedError", not "NotImplemented"Peter Jones2008-06-051-13/+13
|
* AFAICS these are always indicative of a failure to load an installclass, andPeter Jones2008-06-051-13/+13
| | | | | will always result in a harder to diagnose error later. So raise the exception here.
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-1/+3
| | | | * po/sk.po: Typo fix.
* Use a better test to see if a package group doesn't exist (#439922).Chris Lumens2008-04-021-0/+6
|
* Move /tmp/stage2.img to /mnt/sysimage to free up some memory (#438377).Chris Lumens2008-03-241-2/+2
|
* Make doMethodComplete not depend on the yum backendJeremy Katz2007-12-171-0/+3
| | | | | Move backend specific bits of method complete into a backend.complete() method to avoid tracebacks with installs on other backends
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-2/+2
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-7/+13
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Allow going back to package selection after transaction errors.Chris Lumens2007-12-141-1/+1
|
* Just drop driver disks into /tmp instead of /tmp/ramfsJeremy Katz2007-12-061-2/+2
|
* Fix up the livecd to no longer use an InstallMethod.Chris Lumens2007-12-051-2/+5
|
* Begin removing references to anaconda.method and anaconda.methodstr.Chris Lumens2007-12-051-3/+1
| | | | | | Remove method references from the Anaconda object, along with various support functions that import methods and return instances of methods. This also removes method instances from the backend.
* Inform user about the arch mismatch and offer to upgrade rpm platformmsivak2007-10-261-0/+1
| | | | | | | | | | | | | | | | | | Bug #217132 2007-10-26 Martin Sivak <msivak@redhat.com> * backend.py (doRepoSetup): Update the platform file if necessary * dispatch.py: Add new step for detecting platform upgrade * flags.py (Flags): Add flag for controlling the rpm platform update * iutil.py (writeRpmPlatform): Now controlled by the updateRpmPlatform flag * upgrade.py: Add isUpgradingArch, queryUpgradeArch and add the upgradearchitecture step (#217132)
* Copy driver disk contents to /root after installation (#289751).Chris Lumens2007-09-181-2/+4
|
* If we did a kickstart install, use the %packages section from the ks fileChris Lumens2007-09-041-3/+2
| | | | instead of creating a new one.
* 2007-08-06 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-08-061-2/+2
| | | | | | | | * livecd.py (LiveCDCopyBackend.kernelVersionList): Check the rpmdb of the installed root (based on feedback from Jerry Vonau) * backend.py (AnacondaBackend.kernelVersionList): Take the rootPath as an argument * yuminstall.py (YumBackend.kernelVersionList): Likewise.
* 2007-07-16 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-161-0/+4
| | | | | | | | | | From Jane Dogalt <jdogalt AT yahoo DOT com> * fsset.py: Add case for skipping formatting the rootfs dependent on backend so that we don't format the rootfs for live images. A little bit of a hack, but good enough for now * backend.py: Add skipFormatRoot attribute, defaults to False * livecd.py: Add skipFormatRoot attribute = True * packages.py: Pass skipFormatRoot
* Add a method to write out repo lines to the anaconda-ks.cfg file for allChris Lumens2007-06-261-0/+8
| | | | enabled add-on repositories (#206152).
* Add a bunch of questionable code that implements the new driver diskChris Lumens2007-06-261-69/+17
| | | | | | installation method and removes the old way completely. Now, drivers will be tracked on the running system by installing a package. We can also copy firmware over to the installed system as well.
* Import constants (#234782).Chris Lumens2007-04-021-0/+1
|
* 2007-03-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-03-281-1/+2
| | | | | | * livecd.py (LiveCDCopyBackend.doRepoSetup): Check that we have sufficient disk space for the os.img. (#230943) * backend.py (doRepoSetup): If repo setup fails, go back.
* Set instLog attribute on the backend so yum has somewhere to log to.Chris Lumens2007-03-121-1/+1
|
* 2007-03-07 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-03-071-12/+0
| | | | | | | | | | * backend.py (AnacondaBackend.initLog): Don't open the install log twice (Elliot Peele) * installclass.py (availableClasses): Log a warning when there's an error loading an installclass; raise it in debug mode (Elliot Peele) * exception.py: rpm import not used (Elliot Peele)
* 2007-03-05 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-03-051-0/+70
| | | | | | | | * backend.py (AnacondaBackend.copyDriverDiskModules): Move to here so that it can be used generically or overridden per-backend (AnacondaBackend.doPostInstall): And call it. * yuminstall.py (YumBackend.doPostInstall): Remove specific module copy.
* Kickstart is no longer an install class!Chris Lumens2007-01-191-2/+6
|
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 2006-12-13 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-12-131-0/+4
| | | | | | | | From Elliot Peele <elliot@rpath.com> * backend.py (AnacondaBackend.getRequiredMedia): Abstract into the backend * yuminstall.py (YumBackend.getRequiredMedia): Add implementation * image.py (presentRequiredMediaMessage): Use the backend method
* Fix text based install selection of languages as they are only set in LANG ifPaul Nasrat2006-11-011-1/+1
| | | | we can display them (#212511)
* 2006-09-21 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-09-221-1/+1
| | | | | * backend.py (AnacondaBackend.doInitialSetup): Add missing self (from Elliot Peele <elliot@rpath.com>)
* Display full NEVRA in log (#189308)Paul Nasrat2006-05-221-2/+2
|
* Move account creation to where the root password is set, since it's theChris Lumens2006-05-051-20/+1
| | | | | same sort of stuff anyway. Don't run libuser.admin until after /etc/shadow has been created in the install root so root's password gets set.
* Finish making non-UI steps pass around the anaconda object.Chris Lumens2006-05-041-33/+32
|
* Add support for making users and for enabling/disabling services viaChris Lumens2006-05-031-0/+20
| | | | kickstart.
* Fix some deprecation warnings.Chris Lumens2006-03-301-3/+4
|
* 2006-03-04 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-03-041-3/+3
| | | | | | * backend.py (doPostSelection): Pass direction * dispatch.py (installSteps): Likewise. * yuminstall.py (doPostSelection): Likewise.
* Error if there's not enough disk space to install the selected packagesChris Lumens2006-03-031-1/+1
| | | | (#183878).
* Improved upgrade supportPaul Nasrat2006-02-221-0/+2
|
* Complain about unknown packages and groupsPaul Nasrat2006-02-171-3/+3
|
* Fix warningPaul Nasrat2006-02-081-1/+1
|
* 2006-02-06 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-02-071-1/+2
| | | | | | | * backend.py (writeConfiguration): Include writing out instdata so that things like root password, etc all work again (#180310) * dispatch.py (installSteps): Pass id and instPath to writeconfig again
* 2006-02-02 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-02-021-1/+1
| | | | | | * yuminstall.py (YumBackend.getDefaultGroups): Select lang groups by default too (#178673). Fix a typo. * backend.py (writeConfiguration): And another typo.
* Implement writeConfiguration (#115714)Paul Nasrat2006-02-021-1/+10
|
* Write out %packages section in the template kickstart file.Chris Lumens2006-01-201-0/+4
|
* Ensure upgrades depsolved. Ensure rpm lock/cache removed.Paul Nasrat2005-12-101-2/+5
|
* Make install more robust to file read failures.Paul Nasrat2005-12-081-0/+1
| | | | Initial support for upgrades again.
* 2005-12-08 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-12-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * installclasses/fedora.py (InstallClass.setGroupSelection): Get default groups from the backend * backend.py (AnacondaBackend.getDefaultGroups): Support for getting default groups * iw/GroupSelector.py: Guts of new group/package selection code. Eventually will live in son of s-c-packages. * ui/GroupSelector.glade: glade file for new group selection code * iw/package_gui.py: Basic shell for GroupSelector use in anaconda * yuminstall.py: Update for yum 2.5 API changes. Note that we now *require* yum-2.5.0-0.20051207 or newer (isPackageInstalled): Add method to see if package is installed for group selection. (_catchallCategory): Add method to take uncategorized groups and stick them somewhere (getDefaultGroups): Backend method for finding the default selected groups based on what comps says * gui.py (stepToClass): Move to new group selection code.
* Use method not methodstrPaul Nasrat2005-11-151-4/+2
|
* 2005-10-24 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-10-241-2/+11
| | | | | | | | * dispatch.py (installSteps): Break out reposetup and base package selection into separate steps. * installclass.py (BaseInstallClass.setSteps): Likewise. * yuminstall.py (YumBackend.doRepoSetup): Add backend repo setup. * backend.py (doBasePackageSelect): Implement generically for now