summaryrefslogtreecommitdiffstats
path: root/image.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Call the superclass's __init__ method before we needs the variables it sets up.Chris Lumens2006-09-071-3/+1
| | | | This fixes NFS ISO installs.
* 2006-08-16 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-08-161-4/+4
| | | | * image.py (findIsoImages): Adjust for changed paths
* Move self.isoPath into the base ImageInstallMethod class (#201775).Chris Lumens2006-08-111-1/+1
|
* Removed iutil.copyFile.Chris Lumens2006-07-121-2/+2
|
* 2006-06-30 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-301-6/+5
| | | | | | | | | | * scripts/mk-images: Move second stage images to images/ dir. * image.py: Adjust for stage2 in images/ * loader2/cdinstall.c: Likewise. * loader2/hdinstall.c: Likewise. * loader2/method.c: Likewise. * loader2/nfsinstall.c: Likewise. * loader2/urlinstall.c: Likewise.
* 2006-06-14 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-141-0/+2
| | | | | * image.py (CdromInstallMethod.switchMedia): Don't switch if we're already there.
* Remove misleading comment.Chris Lumens2006-06-051-1/+0
|
* Fix cd install number window for yum backend and various tracebacksPaul Nasrat2006-05-251-20/+20
|
* Consolidate file fetching error handling into one set of urlgrabber errorChris Lumens2006-05-251-0/+23
| | | | callbacks. Allow retrying when the error dialog is displayed (#183974).
* Kill getRPMFilename.Chris Lumens2006-05-081-48/+0
|
* Get ready for a surprise...David Cantrell2006-03-241-1/+2
| | | | not really. It's just iutil.getArch() -> rhpl.getArch() updates.