summaryrefslogtreecommitdiffstats
path: root/iw
Commit message (Collapse)AuthorAgeFilesLines
...
* It's part.active, not part.is_active().Chris Lumens2009-02-162-2/+2
|
* Iterate over partitions to see free space.David Cantrell2009-02-121-1/+7
| | | | | | Use the getFirstPartition() and nextPartition() method to iterate over partitions so we can see the free space as represented by libparted.
* Syntax fixes for the new pyparted for parted.FileSystem.David Cantrell2009-02-121-2/+2
| | | | | | | | To get the name of the filesystem type (e.g., 'ext3'), use parted.FileSystem.type. This string is also a valid key in to the parted.fileSystemType hash table. You can extract the value from the hash table to get a _ped.FileSystemType object for your filesystem.
* Iterate over partitions using disk.partitionsDavid Cantrell2009-02-121-12/+5
| | | | | | | Rather than calling disk.nextPartition() over and over, we can get a hash table of all partitions on a disk via disk.partitions. Iterate over the values() of this hash (the keys correspond to the partition number).
* Read CHS values from Device.biosGeometry propertyDavid Cantrell2009-02-122-8/+7
| | | | | | The old pyparted had CHS values as properties directly on the PedDevice. The new pyparted API gives a 3-tuple for the CHS values via the biosGeometry and hardwareGeometry properties.
* Use device property on Disk and Geometry objects.David Cantrell2009-02-124-27/+27
| | | | | The property name for Device objects on a Disk or Geometry is 'device', not 'dev'.
* Syntax changes for the new pyparted.David Cantrell2009-02-122-4/+4
| | | | | | | | | | | | | | | 1) Iterate over partitions with a for loop over disk.partitions.values() rather than calling next_partition() 2) Call getFlag() rather than get_flag() 3) Call setFlag() to enable a flag, call unsetFlag() to disable a flag. 4) Reference the active property rather than calling the is_active() method. And other fixes.
* Don't use the native_type flag anymore.Chris Lumens2009-02-121-2/+2
| | | | | | | In the old pyparted, this flag was marked with all sorts of warnings about how it would go away once certain constants were supported. We now support all the constants libparted exposes, so we don't need to keep ancient hacks around anymore.
* Removed partedUtils.get_partition_by_name()David Cantrell2009-02-121-2/+1
| | | | Now provided by pyparted as parted.getPartitionByName()
* Removed partedUtils.get_partition_name()David Cantrell2009-02-122-4/+4
| | | | Now provided by parted.Partition.getDeviceNodeName()
* Removed sector<->cylinder conversion functions.David Cantrell2009-02-122-9/+6
| | | | | The parted.Device object now offers functions to translate between cylinders and sectors.
* Removed partedUtils.getPartSizeMB()David Cantrell2009-02-121-3/+3
| | | | | The parted.Partition object provides getSize() to return the size of the partition in a human-readable format.
* Removed partedUtils.getDeviceSizeMB(), functionality now in pyparted.David Cantrell2009-02-124-4/+4
| | | | | The parted.Device object now provides a getSize() method to return the size of the device in a human-readable format.
* Add iBFT support to loaderMartin Sivak2009-02-121-2/+2
|
* Rewrite iscsi code using libiscsiHans de Goede2009-02-111-1/+6
| | | | | | | | | | | | | | | | | | | This patch replaces the iscsi.py code with new code using libiscsi, getting rid of the awefull configfile mangling to set auth info hack, and in general making it much cleaner. Fixes: -Report error when we cannot add a disk instead of silently failing (461830) -Report error when trying to use iscsi from kickstart without having an iscsiname directive first (463156) -Better feedback while scanning iscsi disks -Make ibft work with chap and 2-way chap -Make ibft configured disks available for upgrades and in rescue mode -Make ibft boot work even when iscsi-initiator-utils is installed after the kernel in the transaction Note: libiscsi is available in Fedora now
* Remove unused partmethod step.Chris Lumens2009-02-091-84/+0
|
* Make ext4 default in UI filesystem selection (bug #481112)Radek Vykydal2009-02-031-0/+2
| | | | | | This patch also makes selecting /boot as mountpoint to automatically select ext3 (in place of ext4) in filesystem combo.
* repo.proxy is now a property, so check before setting it (#481342).Chris Lumens2009-01-231-3/+5
| | | | | Also, change the wording in the UI slightly to indicate you can add a port to the proxy string.
* Update partedUtils.py:findExistingRootPartitions to return UUID (atodorov).Chris Lumens2009-01-071-1/+1
| | | | | | | | The attached patch updates findExistingRootPartitions to return dev, fs, release string, label and uuid and fixes all callers to use the 5 tuple. This is required so that later changes to upgrades functionality can fit better in the code. For more background see: https://www.redhat.com/archives/anaconda-devel-list/2008-December/msg00210.html
* Various packaging fixed from review (#225246)Hans de Goede2009-01-051-1/+1
| | | | Various packaging fixed from review (#225246)
* Fix a few syntax error caugh by pycheckerHans de Goede2008-12-203-3/+5
| | | | Fix a few syntax error caugh by pychecker.
* cracklib now raises exceptions on bad passwords (rzhou, #476312).Chris Lumens2008-12-151-2/+4
|
* Avoid tracebacks when filling in static network config fields (#474275)David Cantrell2008-12-051-4/+23
| | | | | | If the user changes to static network configuration, we may or may not have values already that we can populate the fields with. If we do, take them. Otherwise, leave the field blank and keep going.
* Prevent network install when no network devices are found (#470144)David Cantrell2008-12-051-2/+19
| | | | | | | | | | | | A corner case, but if a user boots up with boot.iso and has no network devices available, we get all the way to package selection and user is told they cannot continue. This is after all of the other screens and partitioning. In the welcome screen, perform a check to see if the user has booted the installer to a point where it requires a network install for the packages. If so, tell the user they cannot continue and exit the installer.
* Change text to reflect Jesse's commentsJeremy Katz2008-12-051-3/+2
|
* Partition requests can be None when populating the tree. (#474284)David Lehman2008-12-031-5/+4
| | | | Port of commit 3568291 from rhel5-branch.
* Say we are unable to configure the network interface (#467960)David Cantrell2008-12-021-7/+17
| | | | | | | | In stage 2 when you get the 'Enable network interface' dialog, if you select an interface that is not able to connect to a network, we just wait and then take the user back to the Enable network interface dialog. Before going back to the dialog, tell the user we were unable to configure the selected interface.
* Make complete text mention updates (#244431)Jeremy Katz2008-12-011-11/+6
| | | | | Mention that updates are available and sync up text for completion between text mode and GUI
* Make text for autopartitioning types clearer (#441350)Jeremy Katz2008-12-011-4/+4
| | | | | We used "default" a lot in the text. Change based on notting's suggestion and make the intro text a little clearer to match
* Add comps groups for new repos that are added (#470653)Jeremy Katz2008-11-121-0/+16
| | | | | | | For new repos that are added, we should also be sure to add their comps information to the base comps object. This largely cut and pastes bits from yum's doGroupSetup(), but that can't be done on a per-repo basis. We should add some API, but this will do for now
* iscsi do missing value check only onceHans de Goede2008-11-111-22/+6
| | | | | | | Currently the iscsi code checks for giving a password but not a username or vica versa in both the interface and the iscsi code, this patch removes the unneeded check from the interface code, this is a preparation patch for fixing #463156, #461830
* Include cracklib .mo files and look up strings in the right domain.Chris Lumens2008-11-111-2/+1
|
* Set the default keyboard based on the language (#470446).Chris Lumens2008-11-101-0/+1
| | | | | | This is required by changes I made in s-c-keyboard to fix a traceback in firstboot reconfig mode. Seems like having both of these working at the same time is very difficult.
* Set the correct path when using the directory chooser.Chris Lumens2008-11-051-1/+1
|
* If there's no language selected, don't traceback (#469578).Chris Lumens2008-11-031-2/+4
|
* Improve filtering of non-available groups (#469438)Jeremy Katz2008-11-031-20/+3
| | | | | | | | We show groups that don't have any of their mandatory packages available which is less than ideal as, eg, xfce-desktop gets shown just because gdm is on the dvd. So make our filtering a little bit stronger. And make sure that text mode is using the same filtering
* Fix the last pychecker warnings in masterHans de Goede2008-10-302-2/+2
| | | | Fix the last few pychecker warnings in master
* Fix various syntax errors caught by PyCheckerHans de Goede2008-10-292-3/+2
| | | | Fix various syntax errors caught by PyChecker
* Do all new device passphrase prompting from partitioningComplete.David Lehman2008-10-271-6/+0
|
* Revert "Say we are unable to configure the network interface (#467960)"David Cantrell2008-10-241-17/+7
| | | | This reverts commit d5c0a7287fe810c06968687777bdca527a44258e.
* Say we are unable to configure the network interface (#467960)David Cantrell2008-10-231-7/+17
| | | | | | | | In stage 2 when you get the 'Enable network interface' dialog, if you select an interface that is not able to connect to a network, we just wait and then take the user back to the Enable network interface dialog. Before going back to the dialog, tell the user we were unable to configure the selected interface.
* Only bring up the netconfig dialog if the repo requires networking.Chris Lumens2008-10-171-9/+9
|
* Fix bringing up the network in rescue mode (#466523).Chris Lumens2008-10-101-3/+8
|
* Fix sorting of repos so we always return an integer value (#466174).Chris Lumens2008-10-091-6/+11
|
* Automatically select NIC based on ksdevice= boot parameter.David Cantrell2008-10-021-4/+13
| | | | | | If you boot with boot.iso and pass ksdevice=DEVICE or ksdevice=MACADDR, use that to automatically select the NIC to use when we ask the user to bring up the network for installation.
* Gateway and nameserver are optional for static network configuration.David Cantrell2008-09-301-2/+3
| | | | | | Do not force users to provide a gateway or a nameserver, just pass if those are missing. However, if they are provided, still raise an error if the provided value is incorrect.
* Store nameserver in NetworkDevice object.David Cantrell2008-09-301-10/+2
| | | | | | Store provided nameserver as the 'DNS1' value in the NetworkDevice object, rather than writing out resolv.conf from the netconfig interface code.
* Fix static network configuration from boot.iso installs.David Cantrell2008-09-291-1/+3
| | | | | | Make sure we write out BOOTPROTO=static and that we add the GATEWAY line to the ifcfg-DEVICE file, otherwise we get an incomplete network configuration from NetworkManager.
* Use all caps naming for the netdev keys.David Cantrell2008-09-291-7/+7
|
* Don't traceback if no baseurl has been set yet.Chris Lumens2008-09-291-2/+6
|