summaryrefslogtreecommitdiffstats
path: root/isys
Commit message (Collapse)AuthorAgeFilesLines
* Remove isys/minifind.c and isys/minifind.hDavid Cantrell2010-03-053-123/+0
| | | | Remove unused code from isys.
* Remove getDasdDevPort() and getDasdState() from isys.py.David Cantrell2010-02-221-43/+0
| | | | These functions are no longer called from anywhere inside anaconda.
* Remove isys/dasd.c, functions no longer needed in isys.David Cantrell2010-02-225-222/+1
| | | | | | Remove the dasd.c file from the isys source tree. The only function that was still used was getDasdPorts() and it is only called by Python code, so we can move that functionality in to Python.
* Remove no longer used isys EDD codeHans de Goede2010-01-282-103/+0
| | | | | | | | Note this patch also removes the following line (in the middle of the EDD block): handleSegv = _isys.handleSegv This is intentional, as that line was present in isys.py twice.
* pylint error fixes round 2Hans de Goede2010-01-141-2/+1
| | | | | | | | | | | - 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
* Add a function to get paths to loaded modulesMartin Sivak2010-01-081-0/+10
|
* Fixes problems in the manual network configuration screen in loader with IPv6.Ales Kozumplik2010-01-071-1/+1
| | | | | | A crash occurs after the IPv6 GUI has been enabled when we chose to configure the network device manually. When the crash is fixed the screen still does not appear. This patch fixes both the problems.
* opts should always be treated as a list inside isys.mount().Chris Lumens2010-01-051-1/+1
|
* Include error messages when logging selinux context get/set failures.David Lehman2009-12-151-4/+4
|
* Catch failures to set selinux contexts so it doesn't cause a crash.David Lehman2009-12-151-2/+6
|
* Fix typo logging failure to get default file context.David Lehman2009-12-151-1/+1
|
* Remove smp.c from the Makefile.am, too.Chris Lumens2009-12-101-1/+1
|
* Nothing has a kernel-smp anymore so none of this code is useful.Chris Lumens2009-12-104-701/+0
|
* Remove unused selinux file context functions from isys.David Lehman2009-12-081-46/+0
|
* Use selinux python module for file context operations.David Lehman2009-12-081-3/+10
|
* sundries.h is no longer used.Chris Lumens2009-12-062-89/+1
|
* Enable method/repo nfs options in stage2.Radek Vykydal2009-12-031-2/+5
| | | | | | | | | | | In stage 2, the nfs options given in repo= boot parameter were malparsed, in UI they were ignored. Note that now the options can get to stage 2 only via method=/repo= boot parameter. Ks nfs option --opts works only when its url specifies stage2 (i.e. ends with images/install.img). In cases when method (--repo parameter for anaconda python script) is inferred from stage2, nfs options of stage2 "nfs:..." url aren't passed to stage 2.
* Sleep if the kickstart file read fails (#537361)Ales Kozumplik2009-11-192-5/+50
| | | | | | | | | | | | | If a read from a block device (like USB key) or a cdrom (USB cdrom) fails, sleep a bit to give the device some time to initialize. Return status of the mount command is checked so waiting occurs only if there is a reasonable chance that the device might eventually come online. This required extending our existing mounting methods to report the correct mount error code. I tested that * the installer still runs * reading the kickstart from a usb works * starting the installer with no USB key inserted but a command line argument pointing to a USB drive will trigger the waiting cycle and that when the key is inserted while waiting the kickstart is eventually found on the key.
* Replace all popt use with glib's option parsing code.David Cantrell2009-11-182-2/+1
| | | | | We have glib for other things, so we can use it for option parsing and dump another library dependency.
* isys: remove stray debug printf (#533597)Hans de Goede2009-11-091-1/+0
| | | | | | Somehow a debug printf of mine from developing: "Fix EDD BIOS disk order detection in general and make it work with dmraid" patch ended up in getting committed, this patch removes it.
* Fix logging of isys mount/umount into program.log.Radek Vykydal2009-10-301-1/+1
|
* 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.