summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
Commit message (Collapse)AuthorAgeFilesLines
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-311-2025/+0
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* Remove yum cache for anaconda's temporary repos (#593649).Chris Lumens2010-05-241-1/+1
|
* Use separate method for copying network configuration to system (#520146).Radek Vykydal2010-05-131-1/+2
| | | | | | | | | | | | | | Former Network.write was used to write config both to anaconda environment and to installed system. It became quite messy and unreadable doing both things as writing to installed system was just copying the file from anaconda root to system root for all files except ifcfg-DEVICE. Using two separate methods makes clear what we are doing. Also there is a question if we need to copy the network config to system twice as we are doing - first in preinstall step, and then in writeconfig step. The latter is not necessary I think and seem to be actually a noop.
* Allow displaying groups that only contain conditional packages (#475239).Chris Lumens2010-05-051-1/+2
| | | | | | | This also allows selecting these groups in the UI, though if the group has no optional packages you will not be able to pull up the optional package selection dialog. In effect, a conditional-only group will act like a mandatory-only group as far as the UI is concerned.
* In groupListExists, log what groups don't exist.Bill Nottingham2010-04-151-0/+1
| | | | This helps when debugging misbehaving installclasses.
* yum requires the proxy settings to include a protocol (#576691).Chris Lumens2010-04-081-8/+15
| | | | | | | Since yum requires the protocol and libcurl doesn't care if there's a protocol given or not, add the protocol to the front of the proxy value itself. Also, both yum and libcurl will process the proxy setting if it's got a port on the end so remove all the special port handling.
* Make sure the install.img exists before attempting to copy (#578391).Chris Lumens2010-03-311-3/+4
| | | | | | | | While we're able to handle the exception that results without problem (except for a scary log message), we still set self._loopbackFile in mountInstallImage so when that method fails, umountFilesystems will attempt to unmount the install.img that was never copied. And then that results in an unhandled exception.
* Copy install.img and remount no matter how many discs (#577196)Peter Jones2010-03-301-5/+4
| | | | | It seems we have unmount/reboot problems when using only one disc when we don't copy the install.img. So always do that.
* Don't add duplicates to the transaction set (#575878, jantill).Chris Lumens2010-03-301-0/+3
| | | | | | Adding duplicates can cause dependency resolution to go from taking seconds to taking minutes. Long term we want to add checks to yum and/or remove our selectPackage entirely, but for now this'll speed things up.
* Remove hacks that don't apply in present repo setup flow.Radek Vykydal2010-03-171-11/+0
| | | | | | We don't need the hacks because both before and after (for going back case) calling doGroupsSetup, the group selection info is reset. Before (reposetup step) - the ayum object is created. After - it is reset in basepkgsel step.
* Fix displaying error messages on cleanup/remove callback problems (#572893).Chris Lumens2010-03-121-1/+7
|
* Use the same cache directory as yum now uses (#568996).Chris Lumens2010-03-091-1/+1
| | | | | | If we continue using our old location, post-installation yum operations will not use our pre-cached repo metadata which wastes disk space and saves no time.
* Reset conditionals of transaction info too. (#505189)Radek Vykydal2010-03-091-0/+1
| | | | | | | | | | | | | | The patch is concerning basepkgsel step. It is necessary when going back to task selection screen (tasksel -> basepkgsel (1) -> ... [Back] ... -> basepkgsel -> tasksel) in UI, editing repository, and then going forward (tasksel [Edit repo] -> basepkgsel (3) -> ...) again where - without the patch - stale YumBase conditionals dict created in first pass of basepkgsel step (1) would be used when adding groups in next forward pass of basepkgsel step (3). This would result in traceback (in postselection step) because editing of repository is done by removing old repo object and adding a new one, and stale conditionals, created in the first pass (1) of basepkgsel when adding groups for old repo, still reference (via attribute repoid) now removed old repo after pass (3) of basepkgsel
* Do some editing of package and filter UI strings (#569039).Chris Lumens2010-03-041-1/+2
|
* rpm doesn't always give the callback a tuple (#567878).Chris Lumens2010-02-251-0/+3
| | | | | | On erasure callbacks, we get just a string that's the name of the package in question instead of the usual tuple. We're most likely to hit this during upgrades, after packages have been installed.
* Remove a couple redundant network bring up calls.Chris Lumens2010-02-221-26/+13
| | | | | | | At least, I believe these are redundant and likely unreachable. I don't think there's a way to get to these places on a network install without any network active. These calls have all the marks of desperation to cover th bases without thinking about whether they're even valid or not.
* Reset the resolver cache after bringing up the network (#562209).Chris Lumens2010-02-221-1/+13
| | | | | | | | | Throughout stage2 if we bring up the network after doing various actions, we need to make sure the DNS resolver is reset to pick up the new information. However, pycurl/libcurl uses the c-ares resolver which does not have a method similar to res_init. Instead we need to tear down the pycurl.Curl object instance cached in urlgrabber and create a new one. This does the same thing as re-reading /etc/resolv.conf, but in more steps.
* Last attribute out of InstallData, please turn out the lights.Chris Lumens2010-02-041-1/+1
|
* Move storage into the Anaconda class.Chris Lumens2010-02-041-10/+10
|
* Move network to the Anaconda object.Chris Lumens2010-02-041-1/+1
|
* Move keyboard to the Anaconda object.Chris Lumens2010-02-041-1/+1
|
* Move instLanguage to the Anaconda object.Chris Lumens2010-02-041-1/+1
|
* Move upgrade-related data to the Anaconda object.Chris Lumens2010-02-041-16/+13
| | | | | | This also removes the hack where upgrade can be True, False, or None in order to test whether we've seen the upgrade screen or not. Instead, it introduces a global value hack. I consider this the slightly cleaner approach.
* Move instProgress to be an attribute on the InstallInterface.Chris Lumens2010-02-041-2/+2
|
* Move instClass to be an attribute on Anaconda.Chris Lumens2010-02-041-2/+2
|
* Use anaconda.ksdata instead of anaconda.isKickstart.Chris Lumens2010-02-041-6/+6
| | | | | | 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-4/+4
|
* Move the isHeadless attribute onto the Anaconda class.Chris Lumens2010-02-041-1/+1
| | | | | This requires having loader add --headless to the anaconda arguments automatically on s390, instead of having anaconda figure that out later.
* rename constants and a variable in anconda_log.py so the names make more sense.Ales Kozumplik2010-01-291-3/+3
|
* anaconda, storage and yum: log to tty3 in the same format as we log into tty4Ales Kozumplik2010-01-291-1/+2
|
* iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.Peter Jones2010-01-151-1/+0
| | | | | iutil.execWithRedirect() stopped doing anything with searchPath in 2006 when clumens committed d0dec24. Remove these silly vestigal bits.
* pylint error fixes round 2Hans de Goede2010-01-141-2/+2
| | | | | | | | | | | - 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
* Install the driver discs according to what was loaded in stage1Martin Sivak2010-01-081-15/+27
|
* introduce loglevel flag and use it in yum's tty3 loggingAles Kozumplik2010-01-081-0/+1
|
* Remove LoggerClass but maintain loglevel= functionalityAles Kozumplik2010-01-081-0/+3
|
* Fix typo from commit 13022cc2.David Lehman2009-12-171-1/+1
|
* yuminstall: Fix indentation errorHans de Goede2009-12-161-4/+5
| | | | | | Commit a75aa437f6fcbf988904b8a630cc82ef12c98dd6, leaves the block of code this patch re-indents wrongly indented, causing to only be executed in the else: case of the if above it, while it should be always executed.
* Clean up setting paths on preupgrade (jvonau).Chris Lumens2009-12-161-5/+5
|
* And call freetmp, too.Jerry2009-12-161-0/+1
|
* Remove install.img from /boot during preupgrade.Jerry2009-12-161-0/+7
| | | | | This is needed to make room in /boot on previous installs that only have a 200 MB (or even smaller) /boot so the upgrade can even continue.
* Nothing has a kernel-smp anymore so none of this code is useful.Chris Lumens2009-12-101-5/+0
|
* Get rid of the goofy nested try statements.Chris Lumens2009-12-101-63/+67
| | | | | | This only existed so we could put cleanup code around the whole loop to pop a window, but that's probably the least clear way we could ever do such a thing. Just be more explicit now.
* Nothing sets flags.setupFilesystems anymore, so it can go too.Chris Lumens2009-12-031-31/+30
|
* Remove test mode.Chris Lumens2009-12-031-9/+0
| | | | | | | This is yet another way of running anaconda that gets extremely limited use, no testing, and no consideration during development to making sure it still works. Again, we need to stop pretending and get rid of modes that we don't support.
* Remove rootPath mode.Chris Lumens2009-12-031-1/+0
| | | | | | | This mode is decaying as anaconda moves forward with things like udev, dbus etc. No one is really working on making sure they continue to work. Let's stop pretending and also get rid of some additional complicated ways to run anaconda.
* Enable method/repo nfs options in stage2.Radek Vykydal2009-12-031-1/+2
| | | | | | | | | | | In stage 2, the nfs options given in repo= boot parameter were malparsed, in UI they were ignored. Note that now the options can get to stage 2 only via method=/repo= boot parameter. Ks nfs option --opts works only when its url specifies stage2 (i.e. ends with images/install.img). In cases when method (--repo parameter for anaconda python script) is inferred from stage2, nfs options of stage2 "nfs:..." url aren't passed to stage 2.
* Accept "nfs:" prefix in ks repo --baseurl setting beside "nfs://".Radek Vykydal2009-12-031-6/+9
| | | | | | | We used to accept only "nfs://". First, it was inconsistent with cmdline repo= ks= stage2= options and it confused people. Second, when we offered editing of url with invalid "nfs:" prefix in UI, there was nothing to correct in UI, just clicking OK lead to success.
* Do not traceback on invalid ks repo --baseurl values (#543003)Radek Vykydal2009-12-031-1/+1
| | | | | | | | | The cause of traceback is that repo._baseurlSetup changes repo.baseurl attribute (removes all invalid urls from the list) so we have to keep invalid urls in anacondaBaseURLs to be able to edit it eventually. _baseurlSetup is called from whiteout plugin for all repos (by repo.retreiveMD) after setup of first repo
* Fixes a syntax error in commit b495db2cd56c881a7e661ac55bd31069510cf662.Ales Kozumplik2009-11-261-1/+1
|
* If /boot is too small to preupgrade, don't allow going back (#499321).Chris Lumens2009-11-251-5/+12
| | | | | | | | | | | | First, there's nothing you can do. We don't allow changing the package set or resizing partitions on upgrade, so you can't hope to recover. Second, trying to go back is bringing up a tricky bug. On preupgrade, all the steps before this one are in skipSteps. So dispatcher tries to find the step to go back to, discovers there isn't one, and decides to move "back" to the first step that wasn't skipped. To no one's surprise, that's the same step we were on. However it's not an interactive step, so setScreen tracebacks.