summaryrefslogtreecommitdiffstats
path: root/image.py
Commit message (Collapse)AuthorAgeFilesLines
* pylint error fixes round 2Hans de Goede2010-01-141-1/+1
| | | | | | | | | | | - Remove unnecessary semi colons in various places - textw/upgrade_text.py: add a few missing imports - Fix various missplaced doc strings - Fix several double imports - Fix AnacondaKSScript.run: Module 'os' has no 'exists' member - users.py: Remove double definition of Users.setRootPassword - yuminstall.py: correct typo reop -> repo - yuminstall.py: _run: anaconda -> self.anaconda
* Use named parameters for translatable strings with multiple params.David Cantrell2009-10-011-2/+5
| | | | | | | | | | | | | | | | 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.
* Change DeviceTree.devices from a dict to a list.David Lehman2009-07-211-1/+1
|
* Use the correct unmount method (#496764).Chris Lumens2009-04-221-1/+1
|
* Use the mount and unmount methods on OpticalDevice.format now.Chris Lumens2009-03-241-6/+5
|
* getDeviceByName does not expect the CD device to start with "/dev/" (#491768).Chris Lumens2009-03-241-1/+1
|
* Use booleans in isys.mount() and isys.umount()David Cantrell2009-03-181-6/+6
| | | | Use True/False over 1/0. It's the future.
* Remove all uses of isys.cdromList, which no longer exists.Chris Lumens2009-03-051-7/+7
|
* The sets module is deprecated, so no longer use it.Chris Lumens2009-01-151-3/+3
|
* Fix up syntax errorJeremy Katz2008-12-011-1/+1
|
* Make the required media dialog less wordy (#469557).Chris Lumens2008-11-241-16/+11
| | | | | | If you have a split media set for an Everything install, you end up with a whole bunch of CDs that could be required. This could make the dialog scroll off the bottom of the screen.
* Allow retrying if the ISO images aren't found (for the USB case).Chris Lumens2008-08-201-16/+22
|
* Rest of stage2.img changes.David Cantrell2008-08-131-3/+3
| | | | Reference install.img in anaconda rather than stage2.img.
* Don't try to use self.tree as the mode to open .discinfo.Chris Lumens2008-07-311-1/+1
|
* We no longer add the fstype to the hd: method in loader.Chris Lumens2008-07-181-3/+7
|
* Reorganize to make it easier to reset the "base" repository.Chris Lumens2008-07-091-0/+21
| | | | | This has the side effect of making it possible to switch from a URL installation repo to a CD and back during stage2.
* Support mounting nfsiso sources in mountDirectory.Chris Lumens2008-06-181-13/+9
|
* verifyMedia can check without needing an older timestamp.Chris Lumens2008-06-181-3/+8
|
* Need to import iutil before we use it.Chris Lumens2008-06-051-1/+1
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-8/+3
| | | | * po/sk.po: Typo fix.
* Look in the right place when ISO images are in a subdirectory (#443580).Chris Lumens2008-05-061-3/+3
|
* Handle the DVD having a disknumber of ALL. (443291)Jesse Keating2008-04-251-0/+2
| | | | | | | | | | | | | Anyway, right now the .discinfo file that is on the DVD has "ALL" in it. This just comes from the normal tree. When anaconda is looking for info about the iso images or discs it gets it looks at the .discinfo file to see what number it is. We used to munge the DVD and put in 1,2,3,4,etc.. for how many discs there are. This kind of sucks, 1) munging files blows. 2) requires you to know ahead of DVD creation time how many split isos it would equal. Pungi code got rearranged to where 2 isn't a trivial fix right now, and I realized that we could probably just fake anaconda into thinking that "ALL" == 1, as it's essentially the first of a single DVD sized iso set.
* Handle /dev being on hard drive devices in the second stageJeremy Katz2008-03-201-1/+4
| | | | | | | Sometimes, we can have a device without the leading /dev (method= or stage2= for compatibility) and doing strrchr breaks on cciss too. So just pass whatever we got to the second stage and deal with it where we can at least use python string handling
* Fix the format of the method=hd: parameter.Chris Lumens2008-03-131-2/+2
|
* Fix a bunch of pychecker errors.Chris Lumens2008-01-121-1/+1
|
* Import sets if we're going to use it.David L. Cantrell Jr2008-01-031-1/+1
| | | | Patch from Jesse Keating <jkeating@redhat.com>
* Fix traceback when displaying required media.Chris Lumens2008-01-021-1/+1
|
* 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 an unused function.Chris Lumens2007-12-141-6/+0
|
* methodstr cleanups.Chris Lumens2007-12-051-14/+16
| | | | | | Don't use /mnt/source2 anymore. /mnt/isodir is for image installs to mount whatever contains the images, and /mnt/source is always the source mount point. Also don't use methodstr where we don't have to.
* Make split media image installs work.Chris Lumens2007-12-051-418/+207
| | | | | | | | Rework image.py into a support file with no InstallMethod subclasses in it. Move the media switching code into a yum callback and make sure our base repos have the correct attribute set to trigger using this callback. Be more careful to only attempt ejecting a CD when we're using a method that has a CD device.
* Remove the ejectCD method as it's redundant.Chris Lumens2007-11-201-3/+0
|
* Remove unused functions from InstallMethods.Chris Lumens2007-11-201-22/+0
| | | | | | None of the following functions were even being called, so they can be removed easily: getFilename, copyFileToTemp, urlretrieve, systemUnmounted, getTempPath, and FileCopyException. Now only the hard parts are left.
* 2007-09-24 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-09-241-0/+5
| | | | * image.py (CdromInstallMethod.filesDone): Copy media.repo if it exists
* One "disc" media is just a special case of multiple discs.Chris Lumens2007-08-131-2/+0
|
* 2007-08-13 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-08-131-23/+0
| | | | | | | | | * yuminstall.py (AnacondaYum._handleFailure): Don't use a method specific string that's 99% the same. Instead, just make the string work for everything. * installmethod.py (InstallMethod.badPackageError): Remove * image.py (badPackageError): Likewise. * urlinstall.py (badPackageError): Likewise.
* 2007-08-13 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-08-131-3/+0
| | | | | | | | * yuminstall.py (AnacondaCallback): Remove without using the installmethod's unlinkFilename * image.py (unlinkFilename): Remove method * installmethod.py (unlinkFilename): Remove * urlinstall.py (unlinkFilename): Remove
* - fix syntax errorPeter Jones2007-08-071-3/+3
|
* Add a more specific error message if there's an I/O error as opposed to beingChris Lumens2007-08-061-6/+13
| | | | out of space (#250954).
* Remove unused method.Chris Lumens2007-07-271-3/+0
|
* Don't need to import FileCopyException. It's not used.Chris Lumens2007-07-261-2/+2
|
* 2007-07-25 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-251-15/+8
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-07-02 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-021-9/+9
| | | | | | | | | | | | | | | | * autopart.py: Change references of "Reboot" -> "Exit installer" to make more sense in live install case. * exception.py: Likewise. * fsset.py: Likewise. * gui.py: Likewise. * harddrive.py: Likewise. * image.py: Likewise. * packages.py: Likewise. * upgrade.py: Likewise. * urlinstall: Likewise. * yuminstall.py: Likewise. * livecd.py (LiveCDCopyBackend.doRepoSetup): Add mnemonics
* Use "disc" instead of "CD" in dialogs (#242830).Chris Lumens2007-06-061-8/+7
|
* * image.py (CdromInstallMethod.__init__): don't nuke the timestampdlehman2007-06-041-3/+7
| | | | | | | | | | | | when getDiscNums fails * installclass.py (BaseInstallClass.getPackagePaths): make the return dict's values always be lists of URIs * yuminstall.py (AnacondaYum.doConfigSetup): make conf.reposdir a list like in yum * scripts/mk-images: make sure the MBD_FSIMAGE dir doesn't pre-exist
* 2007-04-12 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-121-0/+4
| | | | | | | | | * urlinstall.py (UrlInstallMethod.systemMounted): Don't copy stage2.img if we can't find it * image.py (CdromInstallMethod.systemMounted): Likewise. * anaconda (setupEnvironment): Make sure we have /sbin and /usr/sbin in our path
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-2/+2
| | | | * image.py (findIsoImages): Translate the string
* 2006-12-13 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-12-131-1/+1
| | | | | | | | From Elliot Peele <elliot@rpath.com> * backend.py (AnacondaBackend.getRequiredMedia): Abstract into the backend * yuminstall.py (YumBackend.getRequiredMedia): Add implementation * image.py (presentRequiredMediaMessage): Use the backend method
* 2006-09-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-09-281-0/+2
| | | | | * image.py (presentRequiredMediaMessage): Don't say that cd #99 is needed
* Look for repodata where the CDs are mounted, not where they are stored.Chris Lumens2006-09-081-0/+3
|