summaryrefslogtreecommitdiffstats
path: root/pyanaconda/packaging
Commit message (Collapse)AuthorAgeFilesLines
* Make language groups work again (#873865)Jesse Keating2012-11-071-3/+11
| | | | | We have to potentially unmangle a lang value from say es_ES.UTF-8 down to just "es" in order to find the group within comps.
* Handle if we get something other than a .treeinfo file (#872012).Chris Lumens2012-11-061-1/+9
|
* Enable yum langpacks plugin to get conditional packages (#868869)Jesse Keating2012-11-061-1/+5
| | | | | | This will require lorax to actually put the plugin files in the image, but once they are there we get all the benefit of somebody else's code managing conditional package installs.
* raise error on rsync failure (#868755)Brian C. Lane2012-11-051-2/+4
|
* exclude bind mounts from rsync (#871637)Brian C. Lane2012-11-051-1/+2
| | | | | rsync tries to remove xattrs even though -x has been specified. They don't need to be copied anyway so exclude /dev/ /proc/ and /sys/
* Fix nfsiso as stage2 (#871554)Jesse Keating2012-11-021-3/+8
| | | | | | | This is an ugly hack, but it gets nfsiso working. You can switch from NFSISO to another source, and back to the same NFSISO, just not to a different NFSISO. That's going to have to be a "known issue" for F18 Beta.
* Add progress percentage info to liveinstBrian C. Lane2012-11-021-1/+36
| | | | | This adds a thread that uses os.statvfs to monitor the amount data that has been copied to the destination mountpoints.
* Fix nfsiso repo selection (#871648)Jesse Keating2012-10-311-1/+12
| | | | | | | | | | | Two fixes here, one set the path to INSTALL_TREE because we haven't moved anything over to ISO_DIR yet. Two account for the isys mount count for paths. When we move a mount point the isys count must be updated so that an attempt later to mount the iso into the INSTALL_TREE won't be short circuited. One could create an (_)isys call that does the move and does the accounting, but that would add more C code, which is an anti-goal.
* updateBaseRepo does not need a storage argument.Chris Lumens2012-10-292-6/+5
| | | | | It can get it as an attribute off the Payload object, now that setup is always being called.
* Fix up calling superclass setup methods in packaging (#870556).Chris Lumens2012-10-294-2/+5
|
* rprivate -> make-rprivate (#869246).Chris Lumens2012-10-231-1/+1
|
* payloadInstallHandler should only optionally take a package argument (#868542).Chris Lumens2012-10-231-3/+3
|
* Reset the comps to empty along with everything else in yum.Chris Lumens2012-10-191-0/+1
| | | | | | Otherwise, previously selected packages will have their "selected" attribute set, so we will not try to mark them for installation again. This leads to some very strange log output.
* Hook up the "Remove Packages" button on the dep solving error screen.Chris Lumens2012-10-192-0/+8
| | | | | | | | | | | All this does is set skip_broken and yum does all the rest. Note that we are still doing dep solving a second time, when the progress hub is up, but adding this setting to the Payload object means skip_broken will be in effect there too. We still need proper error handling for other errors that might occur at that point. This should take care of #865073. I can't think of any cases where you can get past the first hub with a dep solving error.
* Aqcuire yum lock before doing the work of _yumCacheDirHack. (#858993)David Lehman2012-10-191-5/+7
| | | | | This is a different path than that originally reported, but the same fundamental cause.
* Avoid using mount --move on shared paths (#853508)Jesse Keating2012-10-161-0/+4
| | | | | | | | | move doesn't work because /run/ is a shared filesystem. So do as systemd suggests, mark the filesystem as private. We don't know of any reason in anaconda for the filesystem to be shared anyway. This hack can go away if/when the kernel ever allows moving mounts within a shared filesystem.
* Acquire the yum lock before accessing YumBase.repos. (#858993)David Lehman2012-10-151-1/+5
|
* When changing environments, don't explicitly exclude groups (#863886).Chris Lumens2012-10-092-0/+15
| | | | | Otherwise, you'll end up in a situation where packages the previous and current environment share will not get installed.
* Make sure packages anaconda requires are installed.Chris Lumens2012-10-052-7/+15
| | | | | Our forced packages should be marked for installation after all removals have taken place.
* Delete ts data instead of trying to undo dep installs. (#851114)David Lehman2012-10-051-3/+7
| | | | | We're going to convert the full ksdata selection into yum again anyway, so there's no reason to be delicate about it.
* Use a better starting value for required space than 0.Chris Lumens2012-10-031-1/+4
|
* isys.mount needs to be told when something should be mounted NFS (#860273).Chris Lumens2012-09-261-1/+1
|
* Add a progress message for quitting the installer.Chris Lumens2012-09-251-0/+5
| | | | | We need this to quit when handling errors, since doing a sys.exit() from a thread only kills the thread and not the main program.
* Handle --ignoremissing in _applyYumSelections (#859021).Chris Lumens2012-09-252-9/+26
| | | | | | kickstart.selectPackages can go away entirely, since all it does is add stuff to ksdata and we've got that anyway. Having done that, the handling for --ignoremissing then needs to move into _applyYumSelections.
* fixup live install (#853988, #854962)Brian C. Lane2012-09-062-13/+33
| | | | | | | | | | | | | | | | | | | | | | liveinst: use /dev/mapper/live-osimg-min as the install source. This is the original filesystem before changes made by the live boot scripts. updates overwrite unconditionally anaconda: handle livecd: method, set method to 'livecd' and partition to the path. packaging: Move new-kernel-pkg creation into a helper method, _recreateInitrds Add a flag to prevent running new-kernel-pkg more than once livepayload: mount the install source on INSTALL_TREE and rsync it to the ROOT_PATH Don't use verbose with rsync, results in huge program.log and slows down install. Error will be logged. Ignore rsync errors. It has problems with selinux xattrs. Log the return value, but continue. Call _recreateInitrds to create the initrd (#853988)
* Only check media if we really want it (#853404)Jesse Keating2012-09-061-4/+8
| | | | | | | | | | | | This provides a way to opt-out of the check for existing mounted media. If a user has gone into the source spoke and picked a mirror, we shouldn't ignore that choice by checking for valid mounted media. In the case of a network stage2 that has a valid repo, we'll find that when the hub / spokes are initialized. If a user visits the source spoke and just clicks back (leaving autodetect selected, but no media) we just return from apply() so that initial discovery of working stage2 should remain.
* Honor kickstart and command line switches to enable multilib.David Lehman2012-09-061-0/+36
| | | | | | The new option, which can be a boot arg or an option to kickstart's packages section, is --multilib. What it does is set yum's multilib_policy to "all". The default is "best".
* Reorder and comment options passed to rsyncVratislav Podzimek2012-09-061-1/+5
|
* Fix problems in the packaging module that pylint detected.Chris Lumens2012-08-302-35/+33
|
* Only show groups in the UI if they have members that install by default ↵Bill Nottingham2012-08-291-0/+15
| | | | (default or manadtory packages).
* Move setup from ImagePayload to LiveImagePayload.Chris Lumens2012-08-282-8/+7
|
* Set a progress message when liveinst starts installing software.Chris Lumens2012-08-281-1/+9
|
* Fix default definitions of some payload class methods.Chris Lumens2012-08-281-1/+7
| | | | | | Various parts of anaconda either call these methods or expect them to return certain values (so, not NotImplementedError) and it's just easier to have them return default values than create new implementations.
* Add a spaceRequired property for LiveImagePayload.Chris Lumens2012-08-281-0/+5
|
* We don't need image_file in the live payload.Chris Lumens2012-08-282-8/+2
| | | | | / is always mounted for us anyway, and since we're using rsync it's just a simple matter of copying from that directory to our destination.
* Fix args to LiveImagePayload.setup (#852272).Chris Lumens2012-08-281-1/+1
|
* Handle already mounted optical devices (#851274)Jesse Keating2012-08-271-6/+11
| | | | | | | This prevents trying to mount the device a second time. If it's already mounted, and is a valid source of repodata, use it from the path it's already mounted on. Otherwise go ahead and mount the selected optical drive where we want it.
* Add a method to determine if device is mountedJesse Keating2012-08-271-0/+15
| | | | This will return a list of places a particular device might be mounted.
* Unset install_device if repo setup failsJesse Keating2012-08-271-0/+1
| | | | | We're unsetting method there too, we need to unset the install_device so that we don't try and mount it later.
* enable fastestmirror yum plugin (#849797)Brian C. Lane2012-08-271-1/+1
|
* Add several missing yum lock aqcuisitions. (#851212)David Lehman2012-08-241-12/+17
| | | | | Do locking inside release since it gets called from outside of YumPayload.
* Revert "Only use mounted media that has repodata"Jesse Keating2012-08-241-5/+4
| | | | | This reverts commit d82ee4a818be9db7b65282fad7de3c8bf872a6f3. There is a better way to do this.
* Only use mounted media that has repodataJesse Keating2012-08-241-4/+5
| | | | | | | | This recovers some logic from yuminstall.py, only use /run/install/repo if there is metadata there. This is related to bug 851274 , but only fixes part of it. It gets booting from boot.iso working again, but leaves booting from DVD broken.
* verify package checksums against metadataBrian C. Lane2012-08-211-1/+17
| | | | | | Anaconda uses yum's getPackage() function to grab packages. It needs to have a function passed to it in order to verify the package checksum against the metadata.
* If dracut left the DVD mounted, don't try to remount it (#849152).Chris Lumens2012-08-201-7/+15
| | | | | Trying to remount was causing an exception which meant the DVD got thrown out as a possible installation source, so we were trying to use the network.
* Add a local method for exposing group visibility from the comps file.Bill Nottingham2012-08-171-0/+12
|
* Add methods to yumpayload for handling environments.Bill Nottingham2012-08-172-0/+107
|
* Rename 'description' to 'groupDescription'.Bill Nottingham2012-08-172-2/+2
| | | | Other things may have descriptions later.
* Prevent yum messages from showing on ttyJesse Keating2012-08-141-0/+6
| | | | | This is a hammer. A more subtle fix could be done to tie into yum's logging infrastructure and do something sensible with it.
* Set transaction color in case of multilib install.Chris Lumens2012-08-141-0/+5
|