summaryrefslogtreecommitdiffstats
path: root/pyanaconda/packaging
Commit message (Collapse)AuthorAgeFilesLines
* Restore support for partial kickstart files (#887254).Chris Lumens2013-02-131-2/+4
|
* Replace hasActiveNetDev() using new nm moduleRadek Vykydal2013-02-121-4/+4
|
* Bring back the askmethod parameter (#889887).Chris Lumens2013-02-111-1/+11
| | | | | | | | We've got this shiny new method selection UI but if you want to use it, you've first got to sit through the delay of fetching metadata for the closest mirror which might be completely wrong for you. Thus, this parameter will skip the default action. Entering and leaving the source spoke will unset this parameter.
* Move pyanaconda.packaging.get_mount_* into blivet.util.David Lehman2013-01-282-52/+11
|
* Remove the storage module and replace it with blivet.David Lehman2013-01-283-22/+22
|
* Move tsort, platform, and baseudev into storage.David Lehman2013-01-281-6/+5
| | | | Merge baseudev into storage.udev.
* Remove unused functions and move storage-specific utils to storage.David Lehman2013-01-283-25/+17
| | | | | | | | | | | | | | | | | | | This is the first pass at setting things up to split storage out into a separate package. It replaces the guts of iutil.execWithRedirect and iutil.execWithCapture with a single backend function, _run_program. The main thing I can think of that might be cause for complaint is that _run_program does not log each output line as the external program outputs it, so you get the whole output buffer at once. Storage gets its own copy of _run_program and all of the calls in storage use the copy from storage.util. The reason I moved all of the iutil arch functions into storage is that they are mostly used in storage and I didn't want there to be two copies of the whole set. The rest is removing of unused things and moving of things only used by storage into storage.
* Handle sending program output to tty5 through the logging setup.David Lehman2013-01-283-8/+3
|
* Use threadMgr.wait to check threadsBrian C. Lane2013-01-282-9/+3
| | | | This will raise an exception if the thread quit because of an error.
* Rename wait_for_dhcp pieces to say what they actually doRadek Vykydal2013-01-241-1/+1
|
* Initialize network synchronously (#902090)Radek Vykydal2013-01-241-1/+1
| | | | | | | There is no use doing these initialization actions in a separate thread, so let's play safe (races with UI, e.g when setting initial hostname value as in #902090) and do only waiting for dhcp (for payload initialization) asynchronously.
* fixup direct nfs iso url handling (#879187)Brian C. Lane2012-12-201-1/+5
| | | | | It was trying to mount the nfs path including the file.iso, so strip that off before passing it to _setupNFS.
* fixup nfs repo install code (#879187)Brian C. Lane2012-12-201-2/+2
| | | | | | Searching for an empty string inside of another string always returns True. It wasn't properly detecting whether dracut had setup the nfs repo.
* Add more yum locking to yumpayload (#860022)Brian C. Lane2012-12-191-86/+101
| | | | | | | Yum properties have side-effects and are inconsistent in their behavior (eg. one call may go grab something from the net, the next may just return a list). So we need to be paranoid about wrapping self._yum usage in a _yum_lock.
* Update default install size and disk space estimate.David Lehman2012-12-111-2/+3
|
* Install default system for %packages --default (#869978)Brian C. Lane2012-12-071-0/+3
|
* Fix a bug when switching back to an HDISO install source (#879612).Chris Lumens2012-12-041-5/+14
| | | | | | | | | Basically, _setupDevice gets confused when there's a symlink involved in the path and /proc/mounts does not match what we expect. Thus, just make sure we resolve symlinks to their real path before feeding them to get_mount_device. Also, don't print some mount-related log messages if they'd say something like "None is already mounted".
* ISOImage needs to look at /run/install/source for the mounted image (#879142).Chris Lumens2012-12-041-2/+2
|
* Wait for slower dhcp for payload setup and hostname setting (#873468)Radek Vykydal2012-11-271-0/+6
| | | | | | | | | | | | | | | | | | | Cases I tested: (spoke is pre-hub network spoke) Link has (slow) dhcp: - connected in payload init, connected in spoke - not connected in payload init, connected in spoke - fixed by the patch - not connected in payload init, not connected in spoke - subcases: - wait for connection in spoke - leave spoke while connecting - fixed by the patch Link does not have dhcp: - configure static connection and leave spoke
* Allow specifying whether the URL you've given is a mirrorlist or not (#868558).Chris Lumens2012-11-201-1/+4
|
* Handle hd iso leavings by dracut (#876897)Jesse Keating2012-11-201-10/+28
| | | | | Re-arranges a bit of code and handles dracut mounted hd isos. Also handles a None type on self._currentIsoFile better.
* show error when rsync fails (#868755)Brian C. Lane2012-11-201-2/+4
|
* only raise rsync error on error 12 (#868755)Brian C. Lane2012-11-191-6/+4
|
* Enable verbose yum logging once moreJesse Keating2012-11-151-6/+12
| | | | | | | | This time it shoves all the logging data into packaging.log This commit has some hacks to work around yum issues. I've discussed with upstream and they're going to work on better APIs around logging in the future.
* Handle nfsiso leavings by dracut (#876223)Jesse Keating2012-11-141-41/+65
| | | | | | | | | We could have method of nfs:server:/path/ or nfs:server:/path/foo.iso. Dracut could have left stuff mounted to /run/install/repo or /run/install/isodir or both. In any case we should detect what's been left over and setup yum the right way. This introduces a couple new constants as well.
* Handle package dependency errors on kickstart installs too (#865073).Chris Lumens2012-11-141-1/+11
| | | | | This is not handled by similar code in the software spoke, because that code is never run for kickstart installs containing a %packages section.
* Use ksdata to set default runlevelJesse Keating2012-11-131-10/+8
| | | | | | This removes code duplicated in desktop.py, and will short circuit the routine if the user has indicated that they want a graphical boot by way of kickstart data.
* Quit after handling transaction errors.Chris Lumens2012-11-121-1/+2
| | | | We don't provide you with the chance to do anything anyway.
* Add a function to display relevant transaction errors (#873106).Chris Lumens2012-11-121-9/+28
| | | | | | We are trying to prevent the user from getting to the hub with a space error, hence why you can only quit. It's still helpful to catch the errors just in case something sneaks through later.
* Show NFS as the source if dracut left it for us (#875235)Jesse Keating2012-11-091-2/+13
|
* Don't attempt to handle exceptions when NFS mounts fail.Chris Lumens2012-11-091-8/+3
| | | | | | | We don't want to display an error dialog (and we don't even support displaying a dialog for this exception). We should instead raise an exception we know how to handle, and then the status line for the source spoke will be set correctly.
* 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.