summaryrefslogtreecommitdiffstats
path: root/isys
Commit message (Collapse)AuthorAgeFilesLines
* Remove isys.getDeviceByToken since it is no longer used.Chris Lumens2009-04-022-22/+0
|
* Revert "Work around gcc bug #492973"David Cantrell2009-03-311-1/+1
| | | | | | This reverts commit 5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77. gcc-4.4.0-0.31 in rawhide fixes the problem we were seeing.
* Work around gcc bug #492973David Cantrell2009-03-301-1/+1
| | | | | | | | | Problem with -O2 and some string functions with the latest version of gcc in rawhide. Work around the problem for now so we can compile, ideally we can revert this patch in the future. gcc bug: https://bugzilla.redhat.com/show_bug.cgi?id=492973
* If we have no error string, place None in the tuple.David Cantrell2009-03-191-1/+8
| | | | | | Be more defensive about what we get back from the _isys module. Do not assume we get an error string. If it's empty, place None in the tuple.
* Move OUTPUT_TERMINAL definition to isys.hDavid Cantrell2009-03-193-1/+3
|
* Avoid SIGSEGV in doPwMount() when NULL is last parameter (#491192)David Cantrell2009-03-191-3/+5
| | | | | If NULL is given as the last parameter to doPwMount(), do not try to dereference it.
* Fix error message reading and writing in doPwMount()David Cantrell2009-03-181-2/+2
|
* Use booleans in isys.mount() and isys.umount()David Cantrell2009-03-181-3/+4
| | | | Use True/False over 1/0. It's the future.
* Fix ppoll() timeout=infinity usage in auditd (#484721).Peter Jones2009-03-171-3/+2
| | | | {-1,-1} isn't the right way to send infinity to ppoll(), NULL is.
* Look at CPU flags instead of /proc/iomem to determine PAE-ness (#484941).Chris Lumens2009-03-171-15/+7
|
* Get iscsi going with the new storage codeHans de Goede2009-03-171-9/+0
| | | | | | This patch gets iscsi going with the new storage code. There are still a few hicups left (such as NetworkManager downing the interface our / is on), but I'll address those in separate patches.
* Add mediaPresent and eject to the OpticalDevice class.Chris Lumens2009-03-131-33/+0
| | | | | | | These no longer belong in isys.py as putting them in the classes is much more correct. I also put a mediaPresent method on Device in general. This will come in handy when we start dealing with USB CF readers and similar devices that can be present without having media.
* Updates to make existing code use the new storage module.David Lehman2009-02-231-353/+5
|
* Remove unused iface_netmask2prefix() function.David Cantrell2009-02-172-26/+0
|
* Syntax fixes for the new pyparted.David Cantrell2009-02-121-1/+1
| | | | | | | | | To get a parted.Device object, we call: parted.getDevice(path) To create a new parted.Disk object, we need a parted.Device and we call: parted.Disk(device=parted.Device)
* Add iBFT support to loaderMartin Sivak2009-02-121-1/+2
|
* Rewrite mdio_read() in linkdetect.c for strict aliasing rules.David Cantrell2009-02-091-8/+16
| | | | | | Can't cast from a void pointer to struct mii_ioctl_data. Create a local variable and copy in to struct ifreq and back out again to do the same thing.
* Log all calls to mount to /tmp/program.log as well.Chris Lumens2009-01-071-6/+12
|
* Various packaging fixed from review (#225246)Hans de Goede2009-01-051-1/+1
| | | | Various packaging fixed from review (#225246)
* Remove doMultiMount.Chris Lumens2009-01-052-22/+0
|
* Rewrite iface_ip2str() to use libnm-glibDavid Cantrell2008-12-201-107/+36
| | | | | | | | Last dbus removal patch for code written in C. This one changes iface_ip2str() to use libnm-glib to get the IPv4 address of the specified interface. [rawhide]
* Remove isys.e2fslabel() and isys.getraidsb()David Cantrell2008-12-191-67/+0
| | | | These functions are not used in anaconda by anything.
* Reduce direct D-Bus calls in isys/iface.c.David Cantrell2008-12-183-76/+24
| | | | | | | | | | | The first patch in a two (possibly three) patch series that replaces some direct D-Bus code with libnm-glib calls. Much less verbose, easier to read, etc, etc. Tested this patch locally and all seems well. Calling it a day for now. [rawhide]
* Handle both /dev/sr0 and sr0, since that's what cdromList gives (#475083).Chris Lumens2008-12-081-0/+3
|
* In iface_ip2str(), make sure to advance to next item before continue.David Cantrell2008-12-051-0/+1
| | | | | We have to manually advance the iter when working with D-Bus, so if continue in a loop, be sure to call the next() function on the iter.
* Prevent network install when no network devices are found (#470144)David Cantrell2008-12-051-0/+7
| | | | | | | | | | | | 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.
* ext4dev -> ext4 (esandeen).Chris Lumens2008-10-141-2/+0
|
* Get rid of some iface flags that were not doing anything anymore.David Cantrell2008-10-101-7/+1
| | | | | The ipv4method and ipv6method variables are in use now, remove flags that are not used anymore.
* Fix the mount error reading for real this time (pjones, #465250).Chris Lumens2008-10-021-21/+37
|
* Support ksdevice=link when booting from boot.iso.David Cantrell2008-10-022-0/+19
| | | | | If the user supplies ksdevice=link, make sure we automatically select the first network device found that has an active link.
* Another try at fixing up reading errors from mount.Chris Lumens2008-09-291-1/+4
|
* Bring back isys.resetResolv() and fix NetworkManager polling in network.py.David Cantrell2008-09-242-0/+17
| | | | | | | | | Bring back the isys.resetResolv() function to kick glibc and make it reinitialize itself from /etc/resolv.conf again. We need to do this to account for NetworkManager writing out a new resolv.conf. In network.bringUp(), init i to 0 so we actually loop and poll NetworkManager's state.
* Fix a traceback when getting the interface settings (#462592).Chris Lumens2008-09-221-1/+1
|
* Remove doConfigNetDevice() prototype.David Cantrell2008-09-151-1/+0
|
* Remove code from isys not needed for NetworkManager.David Cantrell2008-09-152-143/+0
| | | | | | We do not need the old dhcpNetDevice() or configNetDevice() functions or the resolver code in isys since we are using NetworkManager now.
* Write out final ifcfg-DEVICE files correctly.David Cantrell2008-09-151-0/+35
| | | | | Make sure we carry over the settings from the ifcfg-DEVICE files and current device states from NetworkManager.
* On HDISO installs, mark LABEL= and UUID= partitions as protected.Chris Lumens2008-09-152-0/+22
|
* Fix iscsi disk detection with newer kernels (rh 461839, 461841)Hans de Goede2008-09-151-1/+1
| | | | | | On newer kernels the symlinks are arranged differently, causing driveIsIscsi to fail to detect iscsi drives in current rawhide. This patch fixes this, fixing rh 461839, rh 461841.
* Use print() as a function.Peter Jones2008-09-081-1/+1
|
* Use struct audit_reply instead of struct auditd_reply_listDavid Cantrell2008-09-061-6/+3
| | | | | libaudit API changed a bit. Only have audit_reply now, and not auditd_reply_list.
* Make NM work for the DHCP case, at least (dcbw) (#461071).Chris Lumens2008-09-052-6/+94
| | | | | | | | | | | This patch does two things: (1) It makes sure that NM doesn't run more than once, though we still need to figure out why it's being asked to start up several times. (2) Block the rest of the network configuration process from running until after NM is up and we can talk to it. This fixes the traceback where nothing is providing the .services file. We still need to investigate whether static network configuration works and how the UI flows in error cases.
* iface_start_NetworkManager() cleanupsDavid Cantrell2008-09-052-4/+2
| | | | | | No need to pass iface_t to iface_start_NetworkManager(). Remove unnecessary else { exit(0); } from the child process. Increase wait loop to 45 iterations.
* Define the NM_STATE_* constants in isys.pyDavid Cantrell2008-08-281-0/+6
| | | | | The NM_STATE_* constants are possible values for the State property of NetworkManager.
* Removed iface_dns_lookup()David Cantrell2008-08-282-62/+0
| | | | iface_dns_lookup() is not used anymore, removed it.
* Rewrite iface_ip2str() to talk to NetworkManager over D-BusDavid Cantrell2008-08-283-106/+127
| | | | | I'm rewriting all of this file eventually, but for today you get the rewrite of iface_ip2str().
* Fix err handling in doMultiMount()David Cantrell2008-08-271-4/+15
| | | | | err is a double pointer, so make sure we set it, clear it, and populate it correctly when calling doPwMount().
* Remove isys.getopt()David Cantrell2008-08-261-148/+0
| | | | Code isn't used anywhere in anaconda anymore.
* Expand getDeviceProperties to return all devices.David Cantrell2008-08-261-10/+18
| | | | | | In network.py, I need to get properties for all interfaces that NM knows about, so expand getDeviceProperties() to do that.
* Remove unused silo code that wouldn't even build if it were used.Chris Lumens2008-08-262-904/+0
|
* Remove some really old, really unused code.Chris Lumens2008-08-262-63/+0
|