summaryrefslogtreecommitdiffstats
path: root/iutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Run programs with LC_ALL=C in case we're parsing output (#492549).Chris Lumens2009-04-131-2/+10
|
* Do not write "Running..." to stdout, as that could be tty1.Chris Lumens2009-03-121-2/+3
| | | | | | Doing so sends a whole lot of spew to tty1 which not only looks bad, but makes VNC and text installs look even worse than they already are. Also, let's write output from execWithPulseProgress to the program.log too.
* stdout and stderr may also need to be created.Chris Lumens2009-03-091-5/+5
| | | | | | This is required when handling kickstart scriptlets that can write to log files, since the log file will need to be created before it can be opened.
* Merge branch 'master' into storageDavid Lehman2009-03-041-0/+180
|\ | | | | | | | | | | | | | | | | Conflicts: anaconda fsset.py iutil.py iw/partition_gui.py partedUtils.py
| * reIPL support for s390Mark Hamzy2009-03-021-0/+181
| | | | | | | | Signed-off-by: David Cantrell <dcantrell@redhat.com>
* | More work on iutil.execWith function file handling.David Lehman2009-03-031-29/+45
| | | | | | | | | | This time I've tested them fairly well, so hopefully these changes will be the last for a while.
* | os.dup2 wants a fileno, not a file. Also, don't clobber the name str.David Lehman2009-02-271-3/+3
| |
* | hasiSeriesNativeStorage is no longer used anywhere.Chris Lumens2009-02-271-19/+0
| |
* | Fix iutil.execWithFoo's file handling.David Lehman2009-02-271-21/+39
| |
* | Add some useful functions to iutil.David Lehman2009-02-231-0/+52
|/
* Remove statement without effect to make pychecker happyHans de Goede2009-02-061-2/+0
| | | | Remove statement without effect to make pychecker happy.
* Pay attention to the stderr parameter to execWithCapture.Chris Lumens2009-02-021-2/+5
|
* Include the missing import.Chris Lumens2009-01-091-1/+1
|
* Log everything from execWithRedirect or execWithCapture (#467690).Chris Lumens2009-01-071-8/+43
|
* Move strip_markup() into iutil.Chris Lumens2008-12-051-0/+16
|
* yuminstall: don't ever stop people installing the virt groupMark McLoughlin2008-08-081-35/+0
| | | | | | | | | | | | | | | This hack was important to stop people installing Xen dom0 on a machine where it wouldn't boot. We don't have dom0 currently and now always makes sense to allow people to install virt-manager and co. for containers, qemu etc. etc. If the hack ever comes back, it should just be to delete the xen-hypervisor package (not in comps for F10) from the list of options. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
* Change the maximum recommended swap size to "2000 + (current ram)".(#447372)Joel Andres Granados2008-08-061-2/+2
|
* Declare variables before trying to use them (#455361).Chris Lumens2008-07-151-0/+2
|
* Don't do the "exec shell on tty1" thing in vnc if we've got virtual terminals.Peter Jones2008-06-051-0/+6
|
* Can't reference iutil.whatever from inside iutil.py.Chris Lumens2008-06-041-9/+9
|
* Fix a couple typos in the getArch commit.Chris Lumens2008-06-041-1/+1
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-15/+108
| | | | * po/sk.po: Typo fix.
* Use the execWithCapture wrapper to be consistent.Joel Andres Granados2008-04-241-3/+1
|
* Lookinig for the capabilities file in xen is valid in more cases.Joel Andres Granados2008-04-231-1/+1
| | | | Thx to msivak for pointing this out. (#441729)
* Avoid putting virtualization option when in Xen or VMware. (#443373)Joel Andres Granados2008-04-231-0/+17
|
* Don't traceback if stdout is an fd eitherJeremy Katz2008-03-311-2/+3
|
* iutil doesn't need isys anymoreJeremy Katz2008-03-311-1/+1
|
* Make sure there's a stdout to write to.Chris Lumens2008-03-281-1/+3
|
* Make sure we give the command that's run on stdout so that it's loggedJeremy Katz2008-03-271-0/+2
|
* Rework isEfi() to be slightly more conservative.Peter Jones2008-03-041-5/+5
|
* Don't write out /etc/rpm/platform anymore.Jeremy Katz2008-02-281-3/+3
| | | | | | We used to need this for platforms like iSeries and pSeries to avoid crazy asm in rpm. These platforms all use the standard kernel now and so we _shouldn't_ need to know the variation. Let's see what happens
* 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.
* Get out of the business of creating device nodes.Bill Nottingham2007-12-071-84/+0
|
* Remove final traces of /tmp/ramfs usageJeremy Katz2007-12-061-3/+0
| | | | | We used to need /tmp/ramfs since /tmp was from an initrd and thus had limited writable space. With initramfs, everything is already ramfs
* set stdin for pulse progress if neededJeremy Katz2007-11-291-0/+2
|
* add iutil.execWithPulseProgress to do a pulsing progress barJeremy Katz2007-11-291-0/+60
| | | | | this is helpful for operations like filesystem checking and resizing when we don't have a good way to do a nice bounded progress bar
* Inform user about the arch mismatch and offer to upgrade rpm platformmsivak2007-10-261-1/+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)
* * iutil.py (makeDriveDeviceNodes): create all variations of tape drivedlehman2007-09-171-1/+5
| | | | | | | | device nodes * isys/devnodes.c (devMakeInode): support creation of the various 2.6 tape device nodes * isys/isys.py (driveDict): find the devices associated with tape drives since kudzu is unable to do so (#218816)
* * 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.
* Add API documentation to a couple files as examples.Chris Lumens2007-07-271-33/+72
|
* 2007-07-25 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* - fix error reporting in execWithRedirectPeter Jones2007-07-251-2/+3
|
* - add support for x86 machines with efiPeter Jones2007-07-181-0/+14
| | | | - add support for gpt on x86
* * urlinstall.py (UrlInstallMethod.filesDone): don't log errors whendlehman2007-07-111-0/+4
| | | | | | | | | | | | | | unmounting /mnt/source since it wasn't necessarily supposed to be mounted in the first place (#223059) * gui.py (InstallKeyWindow): handle F12 shortcut key (#210673) * iutil.py (makeDriveDeviceNodes): create device nodes for tape drives (#218816) * isys/isys.py (tapeDriveList): new function to list tape drives * isys/isys.py (driveDict): probe for tape drives, too
* Set preferred color on upgrades (#235757)Paul Nasrat2007-05-141-2/+15
|
* Log the failing command as well as raising an exception, as some callers justChris Lumens2007-05-011-0/+2
| | | | throw away the exception.
* Set preferred color (#235757)Paul Nasrat2007-05-011-0/+3
|
* Add support for spufs (#237725)Paul Nasrat2007-04-251-0/+20
|
* Make sure kickstart scripts execute with the correct cwd (#237317).Chris Lumens2007-04-231-3/+3
|