summaryrefslogtreecommitdiffstats
path: root/upgrade.py
Commit message (Collapse)AuthorAgeFilesLines
* Expose common fsset methods and properties in class Storage.David Cantrell2009-09-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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().
* Import shutil for upgrades (#519011).Chris Lumens2009-08-241-0/+1
|
* Do not offer going back when ugrade root for ks upgrade is not found (#499321)Radek Vykydal2009-08-051-10/+18
| | | | | | | | | | Going back results in traceback which seems not right. Bug 499321 (preupgrade backtrace) has lots of tracebacks with various causes of upgrade root not found - I distincted two groups.: 1) dmraid not detected in f10 (=> installation on 2 disks) while detected in f11 (=> root not found). 2) root considered as non-upgradable (/etc/redhat-release changed by user). Such a broad bug is rather difficult to handle. OTOH we wouldn't get the tracebacks so easy if we just ended with error message (as with the patch).
* Make upgradeany boot option work again (#513227)Radek Vykydal2009-07-301-3/+4
|
* Add support for specifying upgrade partition in ks (#471232)Radek Vykydal2009-07-021-8/+14
| | | | | | | | The support was removed during storage rewrite (commit e1a7fe9887886044b07587b3ec2caa2ff53ebfb2), perhaps because it didn't work before removing anyway (both branches of added if clause did the same thing - see commit 130f1e6ca2b3f46166a302ca21b1df53062383be)
* Remove unused rhpl importsJeremy Katz2009-07-011-3/+0
|
* If /etc/rpm/platform is found, move it out of the way.Chris Lumens2009-06-011-0/+5
|
* We no longer write out /etc/rpm/platform, so don't offer to upgrade it.Chris Lumens2009-06-011-68/+0
|
* fond -> foundChris Lumens2009-05-201-1/+1
|
* Move _resetRpmDb into iutil so we can access it everywhere.Chris Lumens2009-04-301-1/+1
|
* Pass anaconda to storage.FSSet.turnOnSwap.David Lehman2009-04-301-1/+1
| | | | Fixes a traceback on upgrade.
* getReleaseString now lives in the storage module.Chris Lumens2009-04-061-2/+2
|
* Fix typo in upgrade.pyDavid Cantrell2009-03-301-1/+1
| | | | else -> else:
* Take into account i386->i586 when warning on upgrade arch mismatch.Chris Lumens2009-03-271-3/+10
|
* Handle not finding the upgrade root gracefully.Joel Granados Moreno2009-03-271-0/+15
|
* Move most of the parseFSTab logic into its own function.Chris Lumens2009-03-241-4/+5
| | | | | | The purpose of doing this is so we can start to get a better handle on what line causes an error, so the user has some way to tell what they need to change in their /etc/fstab to make it work.
* Let mountFilesystems handling bind mounting /dev (#490772).Chris Lumens2009-03-231-2/+0
|
* Fix several minor bugs preventing upgrade/rescue mount. (#488946)David Lehman2009-03-091-1/+1
|
* Merge branch 'master' into storageDavid Lehman2009-03-041-0/+1
|\ | | | | | | | | | | | | | | | | Conflicts: anaconda fsset.py iutil.py iw/partition_gui.py partedUtils.py
| * reIPL support for s390Mark Hamzy2009-03-021-0/+1
| | | | | | | | Signed-off-by: David Cantrell <dcantrell@redhat.com>
* | Remove doMigrateFilesystems, log storage to tty3.David Lehman2009-02-271-0/+1
| | | | | | | | | | 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-4/+6
| | | | | | | | | | | | | | | | | | | | | | - 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.
* | Fix whitespace in bindMountDevDirectory.David Lehman2009-02-231-4/+4
| |
* | Updates to make existing code use the new storage module.David Lehman2009-02-231-179/+28
|/
* Encode our upgrade policy in productMatches/versionMatches and enforce it.Chris Lumens2009-02-161-4/+2
| | | | | | | For Fedora, this means we will not allow upgrades of detected root filesystems more than two releases old, or "upgrading" a newer install with an older one. For RHEL, we don't yet know what to do so just allow things to continue as they always have. Using "upgradeany" still circumvents this check.
* Rewrite iscsi code using libiscsiHans de Goede2009-02-111-0/+3
| | | | | | | | | | | | | | | | | | | 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 support for specifying which partition to upgrade (atodorov, #471232).Chris Lumens2009-01-071-1/+9
|
* Update partedUtils.py:findExistingRootPartitions to return UUID (atodorov).Chris Lumens2009-01-071-1/+1
| | | | | | | | The attached patch updates findExistingRootPartitions to return dev, fs, release string, label and uuid and fixes all callers to use the 5 tuple. This is required so that later changes to upgrades functionality can fit better in the code. For more background see: https://www.redhat.com/archives/anaconda-devel-list/2008-December/msg00210.html
* Fix various syntax errors caught by PyCheckerHans de Goede2008-10-291-0/+1
| | | | Fix various syntax errors caught by PyChecker
* Use the instroot parameter like we should be doing.Chris Lumens2008-09-191-1/+1
|
* Get rid of the upgrade blacklist since we can use a yum plugin for that.Chris Lumens2008-08-211-16/+0
|
* First crack at upgrade of systems with encrypted block devices. (#437604)David Lehman2008-08-131-8/+8
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-7/+9
| | | | * po/sk.po: Typo fix.
* Log a message if we disable selinux on upgradeJeremy Katz2008-04-081-0/+1
|
* And add nas to the list (#439255)Jeremy Katz2008-04-071-1/+1
|
* Remove gnome-panel too, it's no longer multilib.Jesse Keating2008-04-071-1/+1
|
* Add gnome-applets to the upgrade blacklist, fix kmymoney2 typo.Jesse Keating2008-04-031-1/+1
| | | | | | gnome-applets was multilib in F8 and so many F8 systems will have a 32 and 64 version installed. We want to remove the multilib version upon upgrade.
* Add kmymoney to upgrade remove list (#439255)Jeremy Katz2008-03-271-1/+1
|
* Fix syntax errorPeter Jones2008-03-121-0/+2
|
* Simplify the logic for the upgrade arch checkJeremy Katz2008-03-121-14/+2
|
* Add a fallback method for determining the architecture of installed system ↵Martin Sivak2008-03-121-5/+44
| | | | during an upgrade (#430115)
* Remove advanced bootloader bitsJeremy Katz2008-02-221-1/+0
|
* Map preexisting encrypted devs before mounting everything in mountRootPartition.David Lehman2008-02-201-0/+9
|
* Finish HDISO installs, at least for DVDs (#431132).Chris Lumens2008-02-121-2/+2
|
* Only look for encrypted devices in rescue mode.David Lehman2008-02-051-1/+2
|
* Scan for encrypted devices before looking for existing roots.David Lehman2008-02-051-1/+2
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-1/+1
| | | | | | | 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/+14
| | | | | | 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.
* Remove gdb.i386 on upgrade (#407431)Jeremy Katz2007-12-041-1/+1
| | | | gdb.i386 ended up as an update at some point and shouldn't be multilib
* Move protected partitions into the Partitions object.Chris Lumens2007-11-281-1/+1
|