summaryrefslogtreecommitdiffstats
path: root/rescue.py
Commit message (Collapse)AuthorAgeFilesLines
* RescueInterface should inherit from InstallInterfaceBase tooHans de Goede2010-02-201-1/+3
|
* Merge branch 'no-instdata'Chris Lumens2010-02-081-14/+14
|\
| * Move storage into the Anaconda class.Chris Lumens2010-02-041-2/+2
| |
| * Move network to the Anaconda object.Chris Lumens2010-02-041-2/+2
| |
| * Move instClass to be an attribute on Anaconda.Chris Lumens2010-02-041-1/+1
| |
| * Use anaconda.ksdata instead of anaconda.isKickstart.Chris Lumens2010-02-041-8/+8
| | | | | | | | | | | | 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.
| * Move ksdata to be an attribute on Anaconda.Chris Lumens2010-02-041-1/+1
| |
* | Add missing methods to RescueInterfacePeter Jones2010-02-051-0/+6
|/ | | | | Some methods have been added to other intfs but not to RescueInterface; they must be added there as well.
* Fixed the setting of LD_LIBRARY_PATH in rescueMartin Gracik2010-01-181-1/+3
| | | | | | | | The hardcoded setting of LD_LIBRARY_PATH was not taking into consideration if there are lib or lib64 directories, and was also overwriting everything loader put there before. Changed to just prepend "/mnt/sysimage" to the directories we already have in the path.
* We moved from dialog to newt.. (#528497)Martin Sivak2009-10-121-1/+1
|
* Use named parameters for translatable strings with multiple params.David Cantrell2009-10-011-3/+3
| | | | | | | | | | | | | | | | 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.
* 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().
* Fix some typos in rescue mode (#515091)Martin Sivak2009-08-041-4/+4
|
* Make upgradeany boot option work again (#513227)Radek Vykydal2009-07-301-1/+1
|
* Run firstaidkit-qs script instead of the shell (shows rescue menu) (#508512)Martin Sivak2009-07-161-5/+32
| | | | | Add dialog package required for firstaidkit Create /etc/fstab in ramdisk to make mount commands easier (#440327)
* Add more windows to the rescue interface class (#498014).Chris Lumens2009-04-281-0/+15
|
* 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.
* Touch /.autorelabel when running under rescue mode (#491747).Chris Lumens2009-04-161-0/+3
|
* If there are no installs to rescue via kickstart, display an error.Chris Lumens2009-03-311-0/+3
|
* Let mountFilesystems handling bind mounting /dev (#490772).Chris Lumens2009-03-231-6/+0
|
* Make some fixes to the rescue mode system selection UI (#489973, #489977).Chris Lumens2009-03-201-2/+5
| | | | | | | (1) When there's more than one system to choose from, display the name of the device, its release string, and the label if it exists. (2) Return the right type when the user makes a selection from the combo box.
* Do not traceback at the very beginning of rescue modeMartin Sivak2009-03-201-3/+3
|
* Use booleans in isys.mount() and isys.umount()David Cantrell2009-03-181-2/+2
| | | | Use True/False over 1/0. It's the future.
* Initialize storage in rescue mode so we can find roots (#488984).Chris Lumens2009-03-111-1/+4
|
* Updates to make existing code use the new storage module.David Lehman2009-02-231-25/+21
|
* Rewrite iscsi code using libiscsiHans de Goede2009-02-111-0/+1
| | | | | | | | | | | | | | | | | | | 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
* 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
* Prevent traceback when there are no network devices (#469339)David Cantrell2008-11-041-0/+2
| | | | | | | | | | | | If a user boots from boot.iso, the installer will bring up the net config dialog to configure the network interface so packages can be found and installed. If a user has no available network devices, the window appears but nothing is in the combo box. If they click the combo box, you get a traceback. This patch returns False from all enableNetwork() functions so the user sees the 'No Network Available' dialog and is given the Exit Installer button.
* Fix bringing up the network in rescue mode (#466523).Chris Lumens2008-10-101-44/+12
|
* Log error in rescue mode is network.bringUp() fails.David Cantrell2008-09-241-1/+2
| | | | For now just log a message if bringUp() fails.
* Fix problems with bringDeviceUp() calls (#463512)David Cantrell2008-09-241-9/+1
| | | | | | | Changed bringDeviceUp() in network.py to bringUp() since it really just writes out all new network configuration information and lets NetworkManager take over from there. Correct the calls to this method so we don't get tracebacks anymore.
* Call network.bringDeviceUp() instead of old isys functions.David Cantrell2008-09-151-33/+2
| | | | | Both isys.dhcpNetDevice() and isys.configNetDevice() have been replaced with network.bringDeviceUp().
* Fix a traceback when starting a shell in rescue mode (#462148).Chris Lumens2008-09-151-2/+2
|
* Use print() as a function.Peter Jones2008-09-081-3/+3
|
* Handle 'rescue' and %post in rescue modeAlexander Todorov2008-08-111-52/+83
| | | | All changes to handle the new rescue command and %post scripts when in rescue mode.
* A text message in rescue.py is not gettext-izedAlexander Todorov2008-07-231-1/+1
|
* Import missing module "network".Peter Jones2008-07-071-0/+1
|
* Rescue mode no longer needs access to a methodstr (#453044).Chris Lumens2008-06-271-10/+1
|
* 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.
* Support stage2= for NFS installs.Chris Lumens2008-03-041-1/+1
|
* Do the man pages in rescue mode the right way.Joel Andres Granados2008-02-121-3/+0
|
* Add UI for passphrase prompting to rescue mode.David Lehman2008-02-051-1/+7
|
* 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-8/+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.
* Begin removing references to anaconda.method and anaconda.methodstr.Chris Lumens2007-12-051-1/+0
| | | | | | 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.
* Lots of minor pychecker error fixes. Some of these are even real problems.Chris Lumens2007-09-191-0/+1
|
* Remove unused imports. Yes I know this is stupid nitpicky crap, but I likeChris Lumens2007-09-191-2/+0
| | | | it.
* resque.py: Make man pages work when chrooting to /mnt/sysimage.jgranado2007-08-281-2/+2
|
* * iutil.py (makeDriveDeviceNodes): Fix number of created scsimsivak2007-08-171-1/+1
| | | | | | | | | partition device files (#241439). * fsset.py (DevDevice.setupDevice): Better error reporting and when using DevDevice class, check for existence of device file. * rescue.py (runRescue): Better error reporting.
* 2007-07-25 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-251-5/+0
| | | | | | | | | | | | | | | | | | | | | | | * fsset.py (allocateLoopback): Use /dev/loopX instead of /tmp/loopX * urlinstall.py (UrlInstallMethod.systemMounted): Use /dev/loop0 instead of /tmp/loop. (UrlInstallMethod.systemUnmounted): Likewise. * rescue.py (runRescue): Loop devices made generally now. * harddrive.py (HardDriveInstallMethod.mountMedia): Use /dev/loop3 instead of /tmp/loop (HardDriveInstallMethod.umountMedia): Likewise. * image.py (CdromInstallMethod.systemUnmounted): Use /dev/loop0 instead of /tmp/loop (CdromInstallMethod.systemMounted): Likewise. (NfsIsoInstallMethod.mountImage): Likewise for /dev/loop3 (NfsIsoInstallMethod.umountImage): Likewise. (findIsoImages): Likewise for /dev/loop2. * iutil.py (makeDriveDeviceNodes): Make loop devices.