summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use ksdata.timezone and timezone module instead of anaconda.timezoneVratislav Podzimek2012-08-2210-119/+159
| | | | | | | We now use ksdata to store data and execute() methods of kickstart commands to set the installed system up. In order to not place all the code to kickstart.py, timezone.py module gathering all timezone related code was created.
* Remove the last usage of the system-config-date in AnacondaVratislav Podzimek2012-08-222-8/+5
| | | | | | | We now don't use the system-config-date's timezone map and the only remaining thing we use sdate for is determining if some string is a valid timezone. This can be easily replaced and thus scdate can be removed from anaconda dependencies and the installation image.
* Add support for swap --hibernation on LVMVratislav Podzimek2012-08-222-2/+2
| | | | | | | Support in pyanaconda/kickstart.py is there since 08440435d06, but the support in pykickstart was missing. (ported 21d2ff99cc6ebae7c9b63229ab5f0b7d44959af4 from rhel6-branch)
* Don't rely on selection staying selected when doing crazy things to itVratislav Podzimek2012-08-221-1/+3
| | | | | | | | | | | | | LanguageSpoke inherits from the LanguageMixIn which is also used by the WelcomeLanguageSpoke and contains the treeview with available languages and the selection object. Obviously the selection doesn't stay selected when WelcomeLanguageSpoke is hidden. So in LanguageMixIn.initialize -- if there is nothing selected, try to use self.data.lang.lang value first and if it is None, fallback to prefered_language (English). Fixes the issue with no translations and default language selected on the SummaryHub before going to LanguageSpoke and back.
* Replace nonexisting icon with an existing one (DatetimeSpoke)Vratislav Podzimek2012-08-221-1/+1
| | | | The original date-time icon no longer exists in the package.
* integer out of range for L format codeMark Hamzy2012-08-221-0/+2
| | | | | | http://docs.python.org/library/ctypes.html#specifying-the-required-argument-types-function-prototypes and http://docs.python.org/library/ctypes.html#return-types need to be followed for the call to nm_utils.nm_utils_ip4_prefix_to_netmask.
* Network spoke: use chr() instead of str() to convert dbus.Byte (#849395)Radek Vykydal2012-08-221-1/+1
|
* 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.
* use F18_PartData for hibernation flag support.Brian C. Lane2012-08-211-1/+1
|
* fix Gtk import in software.pyBrian C. Lane2012-08-211-2/+2
|
* dracut: fix rd.neednet use in parse-kickstart (#849672)Will Woods2012-08-211-1/+2
| | | | | | | rd.neednet is no longer in use by dracut. This is how you tell dracut "definitely bring up the network interfaces, dammit" now. Related: 861d6e3fc9d9cd3f719f7e2dbbff31244dc80142
* parse-anaconda-net: Add missing semicolon for dhclient.confBrian C. Lane2012-08-211-1/+1
|
* anaconda-modprobe: fix .ko removalBrian C. Lane2012-08-211-1/+1
|
* Only devices that already exist may be ISO install sources (#849482).Chris Lumens2012-08-212-22/+25
|
* Use python-meh's MainExceptionWindow's main_window propertyVratislav Podzimek2012-08-212-4/+2
|
* dracut: fix syntax error in parse-kickstartWill Woods2012-08-201-1/+1
| | | | Argh I dropped a colon somehow. Whoops.
* Show fstype as "Unknown" for devices with unrecognised formatting.David Lehman2012-08-201-0/+10
| | | | | | Much like the btrfs hacks, we add "Unknown" onto the end of the list only when the current device is unformatted and do not include it in the list for other devices.
* BTRFS magic for custom spoke.David Lehman2012-08-202-7/+47
| | | | | | | | | | | | | For devices whose formatting is swap, remove BTRFS from the device type combo. Whenever the device type is switched to BTRFS, set fstype to btrfs and lock it in. Do not include btrfs as fstype unless device type is BTRFS. Note: I made this a bit simpler by making BTRFS the last item in the device type list and doing the same for btrfs in the fstype list.
* The device type of preexisting devices cannot be changed.David Lehman2012-08-201-0/+3
|
* Revert old hack that disabled btrfs in the old ui.David Lehman2012-08-201-1/+1
|
* Use correct device instance when updating selector w/ new device.David Lehman2012-08-201-1/+4
|
* Fix a traceback when clicking on the summary in custom spoke.David Lehman2012-08-201-4/+7
|
* Move device size calculation and setting into DeviceFactory.David Lehman2012-08-201-29/+39
|
* Stop pretending btrfs subvols can have a size.David Lehman2012-08-202-29/+1
|
* Fix a typo in StorageDevice._setSize.David Lehman2012-08-201-1/+1
|
* dracut: add info about special variables to READMEWill Woods2012-08-201-7/+45
| | | | | | | Some info about the variables that dracut exports and uses. This helps clarify the $netroot situation in anaconda-lib.sh a bit. Bonus: add some links to Further Reading.
* dracut: fix invalid use of 'eth0'Will Woods2012-08-202-3/+3
| | | | You can't use 'eth0' with ifname=<name>:<MAC>. Use 'ksdev0' instead.
* dracut: drop upgrade-specific hackWill Woods2012-08-201-7/+1
| | | | We don't handle upgrades in anaconda anymore, so this isn't necessary.
* dracut: set "$netif" correctly in initqueue/online scriptsWill Woods2012-08-202-0/+6
| | | | | Dracut now passes $netif as the first argument to the script rather than setting it in the scripts environment. So we need to do netif=$1.
* dracut: fix old-style static ip=xxx gw=yyy...Will Woods2012-08-201-14/+0
| | | | | | | | | | | | If we parse "ip=... gw=..." and emit a new "ip=..." line, we end up with multiple conflicting ip= args for that device. This makes dracut panic with: "Sorry, 'ip=$p' does not make sense for multiple interface configurations" Luckily dracut handles old-style anaconda ip=... arguments now, so we can just drop this block of code and fix the problem. Yay!
* dracut: import anaconda-lib.sh in pre-udev hookWill Woods2012-08-202-2/+6
| | | | | | | | | | | | Since each hook is (basically) a separate shell, we need to import anaconda-lib.sh at least once per hook. Since anaconda-modprobe.sh runs before the other scripts, this covers the whole hook. Still, it's a good idea to leave the imports in place so future maintainers know what functions come from where; clean up the existing import in repo-genrules.sh to actually provide this info.
* dracut: fix set_neednet so network comes up (#849672)Will Woods2012-08-201-4/+8
| | | | | | 'rd.neednet' is no longer used by dracut. Instead it checks for the presence of /tmp/net.ifaces or $netroot. So, if we need network (and $netroot isn't set), make sure /tmp/net.ifaces exists.
* dracut: drop save_netinfoWill Woods2012-08-201-18/+0
| | | | | | | | | save_netinfo moved into upstream dracut's net-lib.sh, so we don't need our own version here. The only place we currently use save_netinfo is in the initqueue/online hook, which will always have sourced net-lib.sh first, so we don't need to worry about changing anything else.
* move anaconda-modprobe to pre-udev hook, silence modprobe errorsWill Woods2012-08-202-2/+2
| | | | | | a) cmdline happens before we start messing with devices, so we don't really need to do modprobe here, b) we don't care if the user doesn't have a floppy drive, that's OK
* parse-kickstart: fix crash with PXE + ks=file: (#844478)Will Woods2012-08-201-0/+7
| | | | | | | | Current dracut crashes (intentionally!) if you use 'ip=' arguments with 'BOOTIF='. Until that's fixed upstream, add a temporary workaround that skips writing 'ip=' arguments if 'BOOTIF' is present.
* parse-kickstart: clarify/refactor Network handlingWill Woods2012-08-201-12/+26
| | | | | Should be no actual behavior changes here, mostly just adding a bunch of comments and clarifying the flow a bit.
* Actually create default ifcfg files (#849012)Radek Vykydal2012-08-201-0/+2
| | | | | | | | | This is fix for F18 alpha. For better fix * The Network() will be replaced with something like init_networking, (perhaps with bringing up dhcp in thread). I have pending patches that need some rework: https://lists.fedorahosted.org/pipermail/anaconda-patches/2012-July/000290.html * default ifcfg files might be created in dracut
* Don't fail on write of nonexisting IfcfgFile(SimpleConfigFile) (#849012, ↵Radek Vykydal2012-08-201-2/+5
| | | | | | | #849095) Due to commit 16a7c6e7af3df4816323a007f785155d307869bf, SimpleConfigFile.write of nonexisting files is failling.
* 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 support for most device editing functions.David Lehman2012-08-171-2/+127
| | | | | | | | | | | | | Changing label, fstype, size all mostly work. Changing device type between lvm and partition should mostly work. RAID options are completely untested, as is changing to a device type of RAID. Changing to and from a device type of BTRFS should probably work, but there's a SIGABRT from btrfs at filesystem/volume create time that will prevent you from actually using it.
* Various fixes, cleanups, and added logging for the custom spoke.David Lehman2012-08-171-20/+60
| | | | | | | | | | Fix size spinner values for new devices. Make sure the remove button is sensitive except on the "Create.." page. At the moment, selecting a page automatically selects one of the devices in that root, which means it's impossible to delete entire roots with the remove button.
* Work around some signal handling issues in the custom spoke.David Lehman2012-08-172-6/+14
| | | | | | | | For now, only connect the MountpointSelectors to button-press-event. Also, don't run the handlers for them during _do_refresh because, for some reason, they get triggered a whole bunch during setup of the left-hand side.
* Make choosing an auto-selected page after refresh slightly less fallible.David Lehman2012-08-172-12/+24
| | | | | | | Build a list, in decreasing order of preference, of pages that make sense to initially have selected. If a page was selected at the time of the refresh, it should probably be still selected afterwards. If that page is no longer present, no problem. Move on to the next one in the list.
* Raise an exception if a new device ends up with size 0.David Lehman2012-08-171-0/+7
| | | | It means the train is off the track.
* Split out logic to determine container based on factory and/or device.David Lehman2012-08-171-11/+15
|
* Allow adding disks to a container's disk set.David Lehman2012-08-172-21/+43
|
* Allow passing a device into newDevice for adjustment.David Lehman2012-08-171-5/+41
| | | | | This allows adjustment of a defined device instead of always having to create one from scratch.
* Add PartitionFactory class so partitions don't need a separate code path.David Lehman2012-08-172-53/+73
|
* Add a convenience method for scheduling resize actions.David Lehman2012-08-171-0/+18
|
* Return early from doKickstartStorage if there are no disks selected.David Lehman2012-08-171-0/+2
|