summaryrefslogtreecommitdiffstats
path: root/backend.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't reset the default package selection on text installs (#564103).Chris Lumens2010-02-121-1/+2
| | | | | Resetting the package selections means the whole of Core does not get installed.
* Last attribute out of InstallData, please turn out the lights.Chris Lumens2010-02-041-1/+1
|
* Move storage into the Anaconda class.Chris Lumens2010-02-041-3/+3
|
* Move the writeKS and write methods from InstallData to Anaconda.Chris Lumens2010-02-041-1/+1
| | | | | For now they're just placeholders, but it gives me a place to add method calls as each objects is removed from instdata.
* Move upgrade-related data to the Anaconda object.Chris Lumens2010-02-041-8/+6
| | | | | | This also removes the hack where upgrade can be True, False, or None in order to test whether we've seen the upgrade screen or not. Instead, it introduces a global value hack. I consider this the slightly cleaner approach.
* Move instClass to be an attribute on Anaconda.Chris Lumens2010-02-041-3/+3
|
* Use anaconda.ksdata instead of anaconda.isKickstart.Chris Lumens2010-02-041-1/+1
| | | | | | anaconda.ksdata is only non-None if there's a kickstart file, just like anaconda.isKickstart would be. Therefore, we don't need two variables to test for the same condition.
* On text kickstart installs, doBasePackageSelect still needs to run (#559593).Chris Lumens2010-02-021-1/+1
| | | | | This method is what calls kickstart.selectPackages, so not running it means the %packages section of the kickstart file will never be applied.
* Introducing a proper syslog daemon allows us to remove the syslogd stub we have.Ales Kozumplik2010-01-211-4/+3
|
* Make sure /tmp/DD exists before trying to copy it.Chris Lumens2010-01-111-4/+5
|
* Install the driver discs according to what was loaded in stage1Martin Sivak2010-01-081-6/+13
|
* Restore accidentally removed line in backend.pyHans de Goede2009-12-161-1/+1
| | | | | Commit 98504bcaad593f3271a76f1591120310c781049d, accidentally removes a non related line, this patch restores this.
* Add a method to remove /tmp/install.img on low memory conditions (jvonau).Chris Lumens2009-12-161-0/+15
|
* Make sure /mnt/stage2 is mounted before trying to unmount.Jerry2009-12-161-1/+2
|
* Skip the mediaDevice check before attempting to mount the install.img.Jerry2009-12-161-5/+1
|
* Nothing sets flags.setupFilesystems anymore, so it can go too.Chris Lumens2009-12-031-15/+7
|
* Remove test mode.Chris Lumens2009-12-031-3/+2
| | | | | | | This is yet another way of running anaconda that gets extremely limited use, no testing, and no consideration during development to making sure it still works. Again, we need to stop pretending and get rid of modes that we don't support.
* Use fs with largest amount of freespace to store install.imgHans de Goede2009-11-231-1/+1
| | | | | | We are currently using the fs/mounpoint with the smallest amount of freespace when install.img needs to be transferred to the harddisk. Use the fs with the largest amount of freespace instead.
* Add escrow supportMiloslav Trmač2009-09-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for storing an X.509 certificate used to encrypt the escrow data, and a "create backup passphrase" flag, to storage.formats.LUKS, and support for storing the same options of "autopart" globally to storage.Storage. While parsing kickstart directives, download the X.509 certificates specified in thekickstart file (if any), enabling network access if necessary, then store the data in the above-described storage objects. While autopartitioning, copy the "autopart" escrow options into each created LUKS volume. Finally, as a part of doPostInstall, find all LUKS volumes with escrow configured, create the escrow files and store them in /mnt/sysimage/root. Changes since the previous version: - Drop unused .encryptedDevice assignments - Move writeEscrowPackets inside doPostInstall - Fix bugs introduced while moving code to storage.formats.LUKS Further changes: - Don't pass escrow args to lvmpv format constructor. - Move backup passphrase generation into storage.devicelibs.crypto. - Use newer, clearer except syntax in storage.writeEscrowPackets.
* Expose common fsset methods and properties in class Storage.David Cantrell2009-09-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add the following methods and properties to class Storage which map through to FSSet methods, modify existing calls to use the method on class Storage: turnOnSwap() mountFilesystems() umountFilesystems() parseFSTab() mkDevRoot() createSwapFile() fsFreeSpace() mtab mountpoints migratableDevices rootDevice Callers no longer need to pass the Anaconda object to the FSSet methods directly. The method on Storage takes care of that. The mtab() method on FSSet is exposed as a property on Storage. The same is true for fsFreeSpace().
* 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.