summaryrefslogtreecommitdiffstats
path: root/textw
Commit message (Collapse)AuthorAgeFilesLines
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-3118-2002/+0
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* Add default iSCSI initiator name in rescue mode (#594434)Hans de Goede2010-05-211-3/+4
|
* logging: remove references to the 'bootloaderadvanced' step.Ales Kozumplik2010-05-141-2/+0
| | | | originally removed in 2008 by 7ad65d9e30fd21d8c0356dc998ea97c579a73d53.
* Remove no longer needed devices argument from Network.write() (#520146)Radek Vykydal2010-05-131-3/+1
| | | | | | | Now when we set NM_CONTROLLED parameter more carefully before writing a device, this parameter introduced by patch 898a891c is no longer needed. OTOH it doesn't break anything and may become handy in the future.
* Enable networking in stage 2 using nm-c-e (#520146)Radek Vykydal2010-05-131-0/+2
| | | | | | | | | | | | | | | | | | | | Key patch of series. enableNetwork method is the root of all other changes in the patchset. The method is used both for network enabling in stage 2 triggered by need of network (repos, network storage, etc..) and [Configure Network] button What we select in stage 2 network UI is: - device to be activated (only in case of network enabling), this is controlled by ONBOOT ifcfg setting, note that devices actually activated depend on editing in nm-c-e - devices to be controlled by NM (and thus visible in nm-c-e), this is set by NM_CONTROLLED ifcfg setting A dialog for that is part of the patch, it needs some polishing. bringUp method had to be split into write and waitForConnection because in case of just config, without actually activating any device in nm-c-e, we don't want to wait for activation.
* Use ifcfg files via NetworkDevice in Network class (#520146)Radek Vykydal2010-05-133-3/+4
| | | | | | | | | | | | | | | | | Remove reading of some keys from NM via dbus, count on ifcfg file contents (written by stage 1, ks, or nm-c-e). This should also ensure support for ipv6 in stage2 using nm-c-e. Remove available() method - it is useless - HWADDR is read from ifcfg file, description is set in constructor, and Network class will be kept up-to-date (e.g. after configuring with nm-c-e) by explicit call to added update() method. readIfcfgContets became useless, we can use (now ifcfg-backed) NetworkDevices' method loadIfcfgFile instead. Hunk starting with if len(available_devices) > 0: is a noop, probably some leftover - removing.
* logging: remove all references to the "installtype" step.Ales Kozumplik2010-05-131-3/+1
| | | | | | | | | it has been virtually nonexistent for three years, see 9e1a444c46abcfc29c2e44ffd102fcc1eda6289e, 2d90bc12dcc682a7f0ff68e599cbb81a34a0b4a3 and 076c853f50c10203b45a552735f692b13a191bcb. I found out about this when auditing the rawhide logs today.
* Don't allow creating a new bootloader config in text mode (#580378).Chris Lumens2010-05-111-20/+5
| | | | | | Text mode doesn't have the UI to create a new bootloader config, and we just write the default in installation mode. Therefore we shouldn't allow it on upgrades either.
* Revert commit 27a4c7df871744454d1ca8979a576f9f45c67189Hans de Goede2010-05-041-0/+4
| | | | | We want to have a sane default for the UTC checkbox so we need to fixup hasWindows() rather then removing it.
* Remove broken hasWindows function from bootloader.py and its callersHans de Goede2010-05-041-4/+0
| | | | | | | | | | | | | | | | As pylint rightfully points out the hasWindows function from bootloader.py is broken, it tries to access bootloaderInfo.dosFilesystems, but bootloaderInfo refers to the bootloaderInfo class, not the module. This does not cause any tracebacks because it tries to access bootloaderInfo.dosFilesystems while iterating over bootloader.images, and bootloader.images has not been set up at this time (so its an empty dict). Thus hasWindows() will always return false, as there is no way to determine hasWindows at this point during the installation (we have not yet paritioned, so any exsting windows partitions may end up being removed), this patches fixes things by simply removing the hasWindows function and fixing up any callers of it.
* Let the user know if adding a zfcp drive fails (#582632)Hans de Goede2010-04-191-5/+4
|
* add_drive_text: Pass interface to iscsi.addTargetHans de Goede2010-04-151-1/+2
| | | | | | | | So that the user gets a wait dialog and thus gets feedback that the add iSCSI drive dialog he entered information into actually is doing something. Related: rhbz#571808
* Move addDriveDialog() and friends to their own classHans de Goede2010-04-152-162/+183
| | | | | | | | | The reason behind this is to make these functions available for using them in rescue mode too. Note to reviewers, the code of addDriveDialog() and friends has not changed a single letter it was only moved to the new textw/add_drive_text.py file (and some boilerplate was added on the top to make it into a new class).
* partition_text: Make addDriveDialog() not depend on anaconda.storageHans de Goede2010-04-151-12/+12
| | | | | | This is a preparation patch for seperating addDriveDialog() and its helper functions out of partition_text.py, so that it can be used for rescue mode too.
* Adjust the Makefiles to install anaconda to /usr/lib{,64}/python?.?.Chris Lumens2010-04-061-1/+2
| | | | You know, like anaconda's any other python module.
* Fix a typo, leaving one less string needing translation (#567427).Chris Lumens2010-02-231-1/+1
|
* Replace calls to isys.getDasdPorts() with calls to new getDasdPorts()David Cantrell2010-02-221-4/+5
|
* Move bootloader into the Anaconda object.Chris Lumens2010-02-044-4/+4
|
* Move storage into the Anaconda class.Chris Lumens2010-02-043-20/+20
|
* Move timezone to the Anaconda object.Chris Lumens2010-02-042-4/+4
|
* Move users and security to the Anaconda object.Chris Lumens2010-02-041-6/+6
| | | | | This patch also moves rootPassword into Users where it belongs and auth into Security where it belongs.
* Move network to the Anaconda object.Chris Lumens2010-02-043-6/+6
|
* Move keyboard to the Anaconda object.Chris Lumens2010-02-041-6/+6
|
* Move instLanguage to the Anaconda object.Chris Lumens2010-02-043-13/+12
|
* Move upgrade-related data to the Anaconda object.Chris Lumens2010-02-041-7/+12
| | | | | | 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
|
* Use anaconda.ksdata instead of anaconda.isKickstart.Chris Lumens2010-02-041-1/+1
| | | | | | 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.
* iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.Peter Jones2010-01-151-1/+1
| | | | | 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-0/+4
| | | | | | | | | | | - 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
* Allow InstallInterfaces to modify the installation steps.Chris Lumens2009-12-111-3/+0
| | | | | This will be handy for the filtering interface that does not at all exist in text mode.
* Add support for whole-disk formatting.David Lehman2009-12-091-1/+1
| | | | Whole-disk formats are recognized but cannot be edited in any way.
* Nothing sets flags.setupFilesystems anymore, so it can go too.Chris Lumens2009-12-031-2/+1
|
* Improve text mode fcoe interfaceHans de Goede2009-12-011-16/+39
|
* Add DCB option to text mode FCoE setup (#513011)Hans de Goede2009-11-261-2/+11
|
* Support upgrading when the language isn't in lang-table (#528317).Chris Lumens2009-10-133-4/+4
|
* Fix parsing of optional portnr in iscsi target IP (#525118)Hans de Goede2009-10-101-2/+9
| | | | | | | | | | This patch fixes 2 issues with the parsing of the optional portnr in iscsi target IP's: 1) We don't want to include the : in the portno, so port = target[idx:] should be port = target[idx+1:] 2) An IPV6 IP always includes the : character, so specifying the port was mandatory with IPV6, this patch looks for "]:" inside the string to determine if a port is present for IPV6 strings.
* Use named parameters for translatable strings with multiple params.David Cantrell2009-10-013-7/+10
| | | | | | | | | | | | | | | | This is a cleanup for the po files. xgettext displays the following messages for some Python files: warning: 'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments. Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments. This patch modifies the reported format strings to use named parameters per the warning message. We were already using these style format strings in users.py and possibly other files. Basically when there is more than one parameter in the format string, we should use a hash table with named parameters.
* The zonetab module has moved (#521986).Chris Lumens2009-09-091-2/+1
|
* Expose common fsset methods and properties in class Storage.David Cantrell2009-09-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add the following methods and properties to class Storage which map through to FSSet methods, modify existing calls to use the method on class Storage: turnOnSwap() mountFilesystems() umountFilesystems() parseFSTab() mkDevRoot() createSwapFile() fsFreeSpace() mtab mountpoints migratableDevices rootDevice Callers no longer need to pass the Anaconda object to the FSSet methods directly. The method on Storage takes care of that. The mtab() method on FSSet is exposed as a property on Storage. The same is true for fsFreeSpace().
* Simplify language.py to two basic settings, and a lot of support (#517569).Chris Lumens2009-09-021-5/+6
| | | | | | | | | There's now just two important settings in the Language module: instLang, which is the language used while anaconda is running; and systemLang, which is the language the installed system itself will use. These two can be different mainly due to anaconda's text mode interface. The rest of anaconda should only set and get these two. All the other support functions still exist for grabbing timezone, font, etc.
* When bringing up network in UI, update only ifcfg file of selected device ↵Radek Vykydal2009-08-261-1/+9
| | | | | | | | | | (#507084). The value of NM_CONTROLLED has to change from no to yes to trigger device activation by updating of ifcfg file, so we need to update just the files of devices selected by user (instead of all devices). Otherwise, selection of another device after previously failed selection doesn't work. Also make writing out of ONBOOT in text mode consistent with gui.
* Fix traceback in text mode upgrade. (#505435)David Lehman2009-08-171-1/+1
|
* Show MAC address of network device in text mode too.Radek Vykydal2009-07-201-3/+4
| | | | | | | I came accross this by the way when working on something different. It adds what was done with commit 2e8dfb72c0c296f24f99512e8fb00c377417a60a (#504216) for GUI to text ui. Althoug BZ suggests that it was already present in text ui, looking into code doesn't (I have no rawhide image to test if it is actually true).
* Edit user-visible dialogs for style.Peter Jones2009-07-131-1/+1
| | | | | We have lots of strings that we display to users which are unclear or contain poor usage and grammar. That's bad.
* error messages of zFCP on s390: log or pass to the UISteffen Maier2009-07-101-1/+4
|
* Initial FCoE supportHans de Goede2009-07-021-1/+28
| | | | | | | | | | | | | | | This patch adds support for using FCoE during the installation. This patch merely lays the initial ground work, there is more work todo: - The system will not boot without manual help after the install, as dracut / mkinitrd do not support FCoE yet - If FCoE is not used for / but for example for /srv, then information about the nic used for FCoE needs to be written in a to be defined config file in the system, and rc.sysinit needs to be thought to read this file and bring up FCoE SAN's / Fabrics not used for / - kickstart support for FCoE still needs to be done
* Tell booty to rescan for bootable drivers when an extra disks get addedHans de Goede2009-06-181-0/+1
| | | | | When manually adding an iscsi disk it will not show up in the where to install the bootloader dropdown, this patch fixes this.
* Convert textw/ to Makefile.amDavid Cantrell2009-06-092-33/+23
|
* Fix discovery of existing raid/lvm for ks install without clearpart ↵Radek Vykydal2009-06-051-1/+5
| | | | | | | | | | | | | | | | | (#503310) (#503681) Default clearPartType to None so that all devices are discovered during storage initialization step, and UI parttype can be set to its default "Replace existing linux system". Also set clearPartType appropriately when going back from partition dialog so that all devices are discovered during storage reset. There is one case that can't be resolved this way: clearpart --all or --linux is set in ks and "Create custom layout" is selected in parttype UI step. Because of ks setting, storage initialization doesn't discover devices (RAID, LVM) on partitions that are to be cleared and therefore they are not present in custom partition dialog. This can be workarounded by going back and than again to custom partitioning dialog. I think we should grey-out type of partitioning combo set to value from ks clearpart command.
* Make the weak password dialog comply with the HIG (#487435).Chris Lumens2009-05-191-1/+1
|