summaryrefslogtreecommitdiffstats
path: root/isys
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not traceback if network device doesn't have HwAddress property (#506013).Radek Vykydal2009-10-131-2/+7
|
* Clear out state before calling XkbGetState.Chris Lumens2009-10-081-0/+1
|
* Force interface up before checking link status (#525071).David Cantrell2009-10-011-0/+14
|
* Remove some unused isys methods.Chris Lumens2009-09-292-142/+0
|
* Make anaconda know its version number (#520061)David Cantrell2009-09-043-2/+12
| | | | | | | Remove the ANACONDAVERSION environment variable and embed the version number at build time. The isys.getAnacondaVersion() function returns the version number to Python code. If need be, it can be extended to libisys.
* The vtoc.h header has moved from the kernel to s390utils (karsten, #520830).Chris Lumens2009-09-031-2/+1
|
* Make all sysfs path's be _without_ /sys prefix (#516168)Hans de Goede2009-08-071-1/+1
| | | | | | | | | | | | | | | | | Most sysfs path handling code expects / uses sysfs path's without the /sys prefix (as udev does internally). There were 4 functions which were exceptions to this: udev_enumerate_devices udev_enumerate_block_devices udev_get_device udev_get_block_device These expected resp. returned sysfs path's with /sys prefix. This inconsistency causes the backtrace in bug 516168. Rather then applying a simple fix for this, this patch makes the sysfs path usage consistent everywhere, to avoid issues like this in the future. This patch adjust the above 4 functions and all callers.
* The names of a couple basic udev methods has changed.Chris Lumens2009-08-041-2/+2
|
* Log when we unmount filesystems so we have a match for mount messages.Chris Lumens2009-07-301-0/+1
|
* Catch None devsJeremy Katz2009-07-291-1/+3
|
* NM no longer exposes information through HAL (#514501).Chris Lumens2009-07-291-17/+14
| | | | | | We need to use dbus and udev now, instead of the HAL interface. In the future, we need to adapt code from storage/udev.py to be less tied to block devices, since network devices use this same interface now.
* You must be this tall to ride.Bill Nottingham2009-07-101-7/+3
| | | | Adjust memory requirements.
* We also need -DUSESELINUX if we want to call matchPathContext.Chris Lumens2009-07-071-1/+1
|
* Add missing LAYER2 and PORTNO handling for s390x.David Cantrell2009-07-062-0/+4
| | | | | | | | libisys and loader lacked handling for the LAYER2 and PORTNO settings present on s390x systems. Also include the fix for #468755 to write layer2=1 rather than layer=2 to the ifcfg-DEVICE file.
* Include the rest of the libs isys needs to link against (#509572).Chris Lumens2009-07-061-1/+2
|
* Switch to using iutil.isS390 instead of rhpl.getArchJeremy Katz2009-07-011-2/+1
|
* Convert isys/ to Makefile.amDavid Cantrell2009-06-092-90/+53
|
* Fix off-by-one errors in read.Bill Nottingham2009-05-271-4/+4
| | | | | Only read in 63 bytes, to make sure we preserve any trailing NULs for end of string.
* Add a function to convert MAC addresses to device names.Chris Lumens2009-05-222-0/+53
|
* Fix blank network device descriptions in the loader. (#501757)Bill Nottingham2009-05-201-0/+1
| | | | | | | This appears to be the source of the problem, and fixes the issue in brief testing. It is completely baffling to me why this would only manifest now; it's not like this code has changed since it was added.
* Collect network interfaces from NetworkManager (#493995)David Cantrell2009-05-041-2/+36
| | | | | | | | | | Remove minihal.py and use NetworkManager to get a list of device names and their hardware addresses. Still have to talk to hal via D-Bus to build a description string, but the hal path is given to us by NetworkManager, so we are sure we are only building a list of interfaces that NetworkManager knows about and can communicate with. Also rewrite command-stubs/list-harddrives to not use minihal.
* make resetFileContext return the context setWill Woods2009-05-011-2/+3
| | | | | | | This patch makes resetFileContext return the context (a string) on success, and None on failure. This fixes the "set SELinux context for newly mounted ..." log messages to actually show the context set.
* Configure network in kickstartNetworkUp() iff NM is not connected (#490518)David Cantrell2009-04-302-0/+26
| | | | | | In kickstartNetworkUp(), call is_nm_connected() to see if we are in NM_STATE_CONNECTED. If we are in any other state, prompt for network configuration and start NetworkManager.
* Run /bin/umount instead of calling umount(2) in _isys.umount (#493333)David Cantrell2009-04-081-7/+26
| | | | | Call the umount(8) command when unmounting filesystems through isys so that /etc/mtab is updated.
* Add doPwUmount() and mountCommandWrapper() to isys (#493333)David Cantrell2009-04-082-45/+89
| | | | | | Turn doPwMount() in to a mount command wrapper. We're already calling mount(8) and capturing error messages so we can pass them back up to our Python code, so the same for unmounting filesystems.
* Fix EDD BIOS disk order detection in general and make it work with dmraidHans de Goede2009-04-082-12/+48
| | | | | | | | | | | | | | | | | Our C-code isys EDD BIOS disk order detection is broken in 2 ways atm: 1) It tries to open "sda" instead of "/dev/sda" 2) It tries to open floppies and when it fails, it aborts further device scanning Besides that it didn't work with dmraid setups due to the following issues: 3) The C-code will not identify a device by the mbr signature from the EDD BIOS info, if multiple devices match the signature, however if we have a fakeraid mirror for example we will have 3 matching devices both the 2 raw disks and the device mapper device. 4) The python code was using /dev/mapper/longName names where as the C-code uses /dev/dm-# 5) The python code was calling the C-code (which builds a cache) before it setup the dmraid sets, so those were not known to the C-code
* Include filesystem type in mount log message.David Lehman2009-04-071-1/+1
|
* 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]