summaryrefslogtreecommitdiffstats
path: root/packages.py
Commit message (Collapse)AuthorAgeFilesLines
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-311-361/+0
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* Set runlevel 5 based on the presence of both a display manager and X server. ↵Bill Nottingham2010-05-121-0/+1
| | | | (#588483)
* Fix up some HIG problems with the betanag dialog (#583404).Chris Lumens2010-04-191-3/+4
|
* Do not append "rhgb quiet" to s390 boot loader config (#570743)David Cantrell2010-04-151-3/+3
| | | | | | | | | | Follow-on to 78d3854021245b1cb612be564d874fa8b2dca671. As pointed out on the mailing list, this problem was already discussed in another bug and the correct fix was never actually pushed. So here it is. Put parens around the ts.dbMatch tests and rely on the console on virtual terminal test. Related: rhbz#526364
* Do not append "rhgb quiet" to s390 boot loader config (#570743)David Cantrell2010-04-141-1/+1
|
* doReIPL should return when going back through steps, too (#563862).Chris Lumens2010-02-251-1/+1
| | | | | | | Without this change, going backwards from package installation errors will bounce at the reipl step and go forwards again without giving you a chance to do anything about it. The result is arbitrary errors about setting up authentication because no packages were installed.
* Only show the error message if there was an error.David Lehman2010-02-101-5/+6
|
* Clarify which storage exceptions are bugs (#557928).Chris Lumens2010-02-081-42/+10
| | | | | | | | | In turnOnFilesystems, some exceptions are bugs in anaconda and some are just fatal errors reported by the underlying tools. An example of the latter is not being able to resize a filesystem due to space issues. These should not get the exception dialog since that looks like anaconda is at fault. For all other cases, it's likely an anaconda bug and should get the exception dialog.
* Move firstboot into the Anaconda object.Chris Lumens2010-02-041-2/+2
|
* Move bootloader into the Anaconda object.Chris Lumens2010-02-041-1/+1
|
* Move storage into the Anaconda class.Chris Lumens2010-02-041-11/+11
|
* Move desktop to the Anaconda object.Chris Lumens2010-02-041-1/+1
| | | | This is also the last thing in InstallData.write, so it can go away too.
* Move timezone to the Anaconda object.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-5/+5
| | | | | | 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-1/+1
|
* Set displayMode on the anaconda object, then refer to that everywhere.Chris Lumens2010-02-041-1/+1
| | | | | | We probably shouldn't be referring to attributes on the OptionParser object when we've got a perfectly useful Anaconda object to use. This also allows removing the displayMode attribute from the InstallData.
* iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.Peter Jones2010-01-151-3/+2
| | | | | iutil.execWithRedirect() stopped doing anything with searchPath in 2006 when clumens committed d0dec24. Remove these silly vestigal bits.
* Nothing sets flags.setupFilesystems anymore, so it can go too.Chris Lumens2009-12-031-92/+91
|
* Remove test mode.Chris Lumens2009-12-031-8/+1
| | | | | | | 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.
* Remove rootPath mode.Chris Lumens2009-12-031-7/+3
| | | | | | | This mode is decaying as anaconda moves forward with things like udev, dbus etc. No one is really working on making sure they continue to work. Let's stop pretending and also get rid of some additional complicated ways to run anaconda.
* Remove /etc/localtime before trying to copy into it (#533240).Ales Kozumplik2009-12-031-1/+6
| | | | | | | | | | If the file is already linked with the source the raised inspection kills anaconda. This happens in some unclear livecd situations but in general nothing prevents the user or any software he runs on the livecd from arranging this manually. Tested when the file doesn't exist beforehand (the common scenario) and when the file links to its later origin already (the bug scenario).
* Name log files something that doesn't conflict with the system (#539542).Chris Lumens2009-11-201-3/+3
|
* For the catch-all case, put the message into the UI, not the exn (#536854).Chris Lumens2009-11-111-2/+2
|
* Use rpm to determine how to set bootloader args and default runlevel (#527520).Chris Lumens2009-10-201-0/+16
| | | | | | We were previously using tests that have diverged from what's going on in yuminstall.py, so this brings the two backend tests into using the same concept.
* Reintegrate reipl to trigger reboot/halt on s390x correctly. (#528380)Steffen Maier2009-10-161-5/+1
| | | | | | | | | | | Because of 8bc669549ddcc7040a5ba56b8afafa18684bac4e and maybe others, triggering reipl at the end of anaconda is no longer sufficient to be hit in all different anaconda install paths. Therefore, move the triggering right after having configured reipl in sysfs and do all in one place. Now loader must no longer immediately relay SIGUSR1/2 to init, since anaconda is not nearly finished with installation, but only remember the state requested by anaconda. Only right before loader terminates, it kills init with the remembered state to really reboot/halt.
* Add a "File Bug" button to all possibilitys in turnOnFilesystems (#528006).Chris Lumens2009-10-151-54/+39
|
* Use named parameters for translatable strings with multiple params.David Cantrell2009-10-011-4/+6
| | | | | | | | | | | | | | | | This is a cleanup for the po files. xgettext displays the following messages for some Python files: warning: 'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments. Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments. This patch modifies the reported format strings to use named parameters per the warning message. We were already using these style format strings in users.py and possibly other files. Basically when there is more than one parameter in the format string, we should use a hash table with named parameters.
* Remove the installation number screen.Chris Lumens2009-09-221-64/+0
| | | | | | | | Whatever form the new entitlement system takes, it is unlikely it will look like what we've currently got. It's probably better to start over fresh than attempt to adapt what we've got into supporting the new system. This will also allow testing of the RHEL6 tree with the right product name without requiring testers to enter a key.
* Make recreateInitrd() generate a dracut initrdHans de Goede2009-09-151-1/+1
|
* Expose common fsset methods and properties in class Storage.David Cantrell2009-09-031-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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().
* Most windows no longer need an anaconda argument, since the intf has that.Chris Lumens2009-07-291-1/+1
|
* Adapt exception.py to using python-meh.Chris Lumens2009-07-291-2/+1
| | | | | | | | This involves getting rid of most of the real code out of this file, adding a minimal subclass of the ExceptionHandler class to do the copying and pdb setup anaconda needs, and calling the install method from within anaconda. We also need to no longer call handleException from elsewhere in anaconda. That method no longer exists.
* Log yum messages.Radek Vykydal2009-06-181-1/+2
| | | | | Overrides base class function: sets handlers for "yum" and "yum.verbose" - loggers that yum is using. Logs into tty3 and with more detail into yum.log.
* We no longer write out /etc/rpm/platform, so don't offer to upgrade it.Chris Lumens2009-06-011-1/+1
|
* Move _resetRpmDb into iutil so we can access it everywhere.Chris Lumens2009-04-301-7/+1
|
* Revert "DeviceError only returns a message, not (message, device) tuple ↵David Lehman2009-04-301-2/+2
| | | | | | | | (#496343)." This reverts commit 7d2799eb905fae1d28607ae3adf3a2929c7e6ece. I changed the places we raise DeviceError to also raise the device path, so this change is not necessary.
* Pass anaconda to turnOnSwap so we can use swap files.David Lehman2009-04-241-1/+1
| | | | | For swap files we need to know anaconda.rootPath and since we're also using anaconda.intf it seems like time to just give in and pass anaconda.
* When catching an OSError, handle it as an object instead of a tuple (#497374).Chris Lumens2009-04-231-2/+2
|
* DeviceError only returns a message, not (message, device) tuple (#496343).Chris Lumens2009-04-201-2/+2
|
* Copy /tmp/program.log to /mnt/sysimage/var/log/.Chris Lumens2009-04-171-0/+1
|
* Add a "File Bug" button to the catch-all partitioning exception handler.Chris Lumens2009-04-161-3/+8
|
* Remove the early catch-all exception handler (#495933).Chris Lumens2009-04-161-3/+0
|
* Do not write /etc/hosts since setup owns that now (#491808)David Cantrell2009-03-301-1/+1
| | | | | | The setup package owns /etc/hosts and NetworkManager manages it once the system is running, so anaconda no longer needs to write out information to /etc/hosts during installation.
* Fix traceback on upgrade. (#491446)David Lehman2009-03-201-1/+1
|
* Move the recursive teardown of all devices out of processActions.David Lehman2009-03-091-0/+1
| | | | | | For upgrades we won't want to tear down everything, so do it in turnOnFilesystems instead, since we're already doing several things in there based on upgrade -v- install.
* partRequests no longer exists, so don't try to import it (#488743).Chris Lumens2009-03-051-2/+0
|
* Merge branch 'master' into storageDavid Lehman2009-03-041-0/+23
|\ | | | | | | | | | | | | | | | | Conflicts: anaconda fsset.py iutil.py iw/partition_gui.py partedUtils.py
| * reIPL support for s390Mark Hamzy2009-03-021-0/+23
| | | | | | | | Signed-off-by: David Cantrell <dcantrell@redhat.com>
* | Fix copying the storage.log file over to the installed system.Chris Lumens2009-03-041-1/+2
| |