summaryrefslogtreecommitdiffstats
path: root/packages.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Remove doMigrateFilesystems, log storage to tty3.David Lehman2009-02-271-98/+101
| | | | | | | | | | Also let exceptions get raised in turnOnFilesystems for the time being.
* | Lots of minor fixes and cleanups. A non-exhaustive list follows.David Lehman2009-02-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | - Change minsize/maxsize to minSize/maxSize since that's the convention elsewhere throughout the code. - Redirect output from all external utilities to tty5, not /dev/null. - Don't waste calls to basename for debug log statements, especially when the device can be None. - Add lots of missing imports. - Fix lots of remnants of previous code usage.
* | Lots of little updates to make things use the new storage module.David Lehman2009-02-241-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exception.py: - Remove unused partedUtils import. - Collect things from storage, not partitions. gui.py: - exceptionDisks is in storage now, not diskset. installclasses/rhel.py: installclasses/fedora.py: - setDefaultPartitioning take storage arg, not partitions. iw/autopart_type.py: - Find things in storage, not partitions. iw/bootloader_main_gui.py: iw/osbootwidget.py: - Remove unused partedUtils import. - Find fsset in storage now. - Use storage, not diskset, for iterating over disks/partitions. iw/lvm_dialog_gui.py: - Fix several typos from the original storage update. iw/partition_gui.py: - Find unusedMDMembers in storage, not partitions. iw/partitionui_helpers_gui.py: - Use StorageDevice.minSize,maxSize for resize limits. - Update doUIRAIDLVMChecks to use new storage module. packages.py: - Use new storage module to list vgs for selinux hack. storage/__init__.py: - Fix FSSet.createSwapFile so it creates the file on the correct device. storage/iscsi.py: - Use new storage module to identify iscsi disks. textw/partition_text.py: textw/upgrade_text.py: - Initial update to use new storage module. yuminstall.py: - Use storage module to find space for upgrade transaction. - Use storage module to locate protected partitions to mount in doPreInstall.
* | Updates to make existing code use the new storage module.David Lehman2009-02-231-58/+79
|/
* Use parted.Disk.getPartitionByPath()David Cantrell2009-02-121-1/+1
| | | | | | Removed the parted.getPartitionByName() function. There is now a method on parted.Disk called getPartitionByPath() which provides the same functionality, but only works on a single Disk.
* Call '/sbin/udevadm settle' instead of /sbin/udevsettleDavid Cantrell2008-12-231-1/+1
|
* Copy /etc/dhclient-DEV.conf file to target system (#476364)David Cantrell2008-12-161-1/+2
| | | | | | | | | | The vendor-class setting gets written to this file during installation, but we need to copy the file to the target system to make sure it's present on reboot. Previously, we wrote this to the ifcfg file for _something_ that read it, but it doesn't look like anything reads it from this location anymore (or ever). [rawhide]
* Save the /etc/fstab before overwriting it on upgrades (#452768, #470392).Chris Lumens2008-11-121-0/+1
| | | | | | It'd be even better if we could save noauto entries and other lines that we don't understand, but that's not easy to do with the current way of doing things.
* Avoid getting linux-base in the kernel listJeremy Katz2008-11-061-0/+4
| | | | | | Sometimes, rpm returns the same kernel as being installed more than once due to it having been in the transaction more than once (#467822). Let's make sure that if that happens, we don't make the silliness continue
* Move persistent network udev rule to under /etc (#464844).Chris Lumens2008-10-141-1/+1
|
* Remount /mnt/sysimage/dev after migrating filesystems.Chris Lumens2008-09-191-1/+3
| | | | | We need to do this so we can read the boot blocks from the hard drive and can present the bootloader upgrade option.
* Do encrypted device passphrase retrofits while activating partitioning.David Lehman2008-09-151-0/+2
|
* The Timer class is no longer used.Chris Lumens2008-08-261-1/+0
|
* udev rules have changed location (#458570).Chris Lumens2008-08-111-1/+1
|
* Fix the #224636 fix.. I didn't look at the python 2.4 api close enough and ↵Martin Sivak2008-08-061-2/+2
| | | | the SystemError doesn't have the message attribute in python 2.4.3.
* We're not actually activating new filesystems quite yet.Chris Lumens2008-08-041-1/+1
|
* Remove all the RPM lock files before creating a new transaction (#456949).Chris Lumens2008-07-311-5/+6
|
* udevsettle takes forever, so display a waitWindow.Chris Lumens2008-07-301-0/+3
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-41/+5
| | | | * po/sk.po: Typo fix.
* Resizing lvs on top of RAID fails, make the error not a tracebackJeremy Katz2008-04-181-1/+5
| | | | | | | Resizing an LV on top of raid fails as we don't have the RAID on at the point we do the metaresizing (#441706). Changing that around is kind of scary at this point and it's a pretty rare case, so just avoid a traceback for now. And really, we should catch the error anyway.
* Return the right thing (from dchapman)Jeremy Katz2008-04-101-1/+1
|
* More ia64 kernel path fixage (#441846)Jeremy Katz2008-04-101-2/+2
|
* Fix for ia64 (#439876)Jeremy Katz2008-03-311-0/+2
|
* Lame attempt to try to avoid race condition with udev creating device nodesJeremy Katz2008-03-311-0/+8
| | | | | | | We seem to not have device nodes yet when we go to write things to disk _sometimes_. But when people switch to tty2, they're there. Assume that the problem is that we're racing with udev and thus add a sleep + waiting for udev to settle
* Don't pass None as stdout or stderr.Chris Lumens2008-03-281-1/+1
|
* Mark for translation based on feedback from translatorsJeremy Katz2008-03-281-3/+3
|
* Just relabel all of /etc/sysconfig (#439315)Jeremy Katz2008-03-281-1/+1
|
* Catch errors on resize and present a dialog to the userJeremy Katz2008-03-271-2/+23
| | | | | | | Rather than throwing an exception on resize errors, catch the problem and present the user with a dialog that has the output from the resize commands. Still only present exiting as being able to go back is going to require some larger rework
* more mouse-related removalsBill Nottingham2008-03-271-1/+1
|
* Handle kernel variants a little better at install time tooJeremy Katz2008-03-261-0/+43
| | | | | | Make our handling of kernel variants a little bit more flexible, allowing for the fact that uname -r might not match version-release exactly. This also makes it so we don't have a hard-coded list of kernel variants
* No more arc (#435175)Jeremy Katz2008-02-271-2/+0
|