summaryrefslogtreecommitdiffstats
path: root/backend.py
Commit message (Collapse)AuthorAgeFilesLines
* Edit user-visible dialogs for style.Peter Jones2009-07-131-3/+3
| | | | | We have lots of strings that we display to users which are unclear or contain poor usage and grammar. That's bad.
* Don't allow the rootfs on live installs to not match (#493206, #492727)Jeremy Katz2009-04-021-0/+1
| | | | | | Ensure that with live installs that the type of the rootfs matches what we need it to. This used to be done behind the user's back in the livecd code, but it's probably better to handle more generally like this
* Get iscsi going with the new storage codeHans de Goede2009-03-171-2/+4
| | | | | | This patch gets iscsi going with the new storage code. There are still a few hicups left (such as NetworkManager downing the interface our / is on), but I'll address those in separate patches.
* Updates to make existing code use the new storage module.David Lehman2009-02-231-3/+4
|
* Rewrite iscsi code using libiscsiHans de Goede2009-02-111-0/+12
| | | | | | | | | | | | | | | | | | | This patch replaces the iscsi.py code with new code using libiscsi, getting rid of the awefull configfile mangling to set auth info hack, and in general making it much cleaner. Fixes: -Report error when we cannot add a disk instead of silently failing (461830) -Report error when trying to use iscsi from kickstart without having an iscsiname directive first (463156) -Better feedback while scanning iscsi disks -Make ibft work with chap and 2-way chap -Make ibft configured disks available for upgrades and in rescue mode -Make ibft boot work even when iscsi-initiator-utils is installed after the kernel in the transaction Note: libiscsi is available in Fedora now
* Add a basic method for checking the minimal size needed for a backendJeremy Katz2008-11-031-0/+4
| | | | | | | Add a basic way to query a backend for how much space is needed on a per-partition basis. This isn't always able to be known and if it's unknown, then you'll get back 0. Add the implementation for / on livecd
* Add a basic reset methodJeremy Katz2008-09-291-0/+5
| | | | | Add a basic reset method to reset the set of installed packages to be nothing. This is one part of fixing #457583
* self.anaconda -> anacondaChris Lumens2008-09-221-5/+6
|
* Do repo setup and sack setup as separate steps.Chris Lumens2008-09-031-8/+5
| | | | | | | | This fixes a bug where yum wants all the repos set up before it does sack setup that only appears with the blacklist/whiteout plugins enabled. It also brings us more in line with how yum really works - where the two are completely separate steps. backend.doRepoSetup has also been renamed to backend.doBackendSetup to sound a little less yum-specific.
* 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
|