summaryrefslogtreecommitdiffstats
path: root/isys
Commit message (Collapse)AuthorAgeFilesLines
* Move isys and booty into the pyanaconda/ directory, adjust paths to match.Chris Lumens2010-06-2830-5456/+0
| | | | | | | This is required so the source layout and package layout have a similar enough structure to make our test setup work. Without this move, you can't run "make check" or checkbot without getting error messages about no such module pyanaconda.booty.
* modules: dont treat isys special.Ales Kozumplik2010-06-231-1/+1
| | | | It really is just another pyanaconda subpackage.
* modules: a change to an import statements in isys/Ales Kozumplik2010-06-231-2/+2
|
* Handle OPTIONS in ifcfg files transparently in loader (#595388)Steffen Maier2010-06-112-4/+2
| | | | | | | | | | | Loader does not need to handle or understand layer2 and portno so consolidate that into opaque options. This will prevent issues such as bug 577005 or commit 9caaca4 or bug 468755 and should be also transparent to future extensions in linuxrc. Correctly parse OPTIONS whose value includes equal signs because the values are attribute value pairs. See also bug 597205 and commit 8549a36.
* do not import block from isys. not needed. (#601291).Ales Kozumplik2010-06-101-1/+0
| | | | | | | | | | | how it fixes the bug: we import pyanaconda.languages during the build, that does pyanaconda.__init__, that imports pyblock, we get that error output: dm.c: 1640: not running as root returning empty list it ends up in the lang-names file, then the traceback at the anaconda start.
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-312-2/+2
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* Put a missing close brace back into isys.c.Chris Lumens2010-05-281-0/+1
|
* refactoring: put totalMemory() into isys.Ales Kozumplik2010-05-276-12/+140
| | | | so the python implementation in iutil.py can be removed.
* Use correct NM dbus interfaces (#594716)Radek Vykydal2010-05-241-3/+5
|
* Make ssid and wepkey in boot params and stage 1 kickstart work (#473803)Radek Vykydal2010-05-244-20/+56
|
* improve the memory checking so it reflects better the hungry architectures.Ales Kozumplik2010-05-193-4/+12
| | | | | | | | | | | | 1) in isys.h differentiate betweet powerpc64 and sparc and everything else. powerpc is extremely hungry. 2) decrease the limits for the remaining architectures--I have i686 and x86_64 particularly in mind there 3) change the way the total memory is guessed. the previous method just assumed kernel binary image is around 16 MB. This can be completely off for the hungry archs.
* logging: fix SIGSEGV when trying to log after closeLog() is called.Ales Kozumplik2010-05-191-0/+1
|
* logging: give loglevels for the shortened names.Ales Kozumplik2010-05-141-3/+3
| | | | | | Renames loglevels to have the same names as in syslog, so they read the same locally and remotely. WARNING is now WARN, ERROR is now ERR, CRITICAL is now CRIT.
* Wait for specific activated network devices (#520146).Radek Vykydal2010-05-131-0/+1
| | | | | | | | | | | | | | We used to activate just one device when enabling network, so it was ok to use waitForConnection (wait just for any connection). Now that more devices can be set to be activated in nm-c-e (by checking [] Connect automatically), we should (1) Wait for all devices activated by nm-c-e this way, otherwise we can fail with traceback in next steps reading device configuration. (2) When enabling network make sure the device selected by user in combobox was activated, not just any device.
* logging: log loader messages with LOG_LOCAL1 syslog facility.Ales Kozumplik2010-05-131-1/+1
| | | | Otherwise they will end up in /tmp/syslog.
* isys/auditd was missing from .gitingore.Ales Kozumplik2010-05-111-0/+1
| | | | Related: rhbz#549653
* Close the dir descriptor after usage. (#589580)Martin Sivak2010-05-071-0/+4
|
* memory: increase the RAM limits, check for URL installs (#549653).Ales Kozumplik2010-05-063-2/+5
| | | | | | | | | | | | | | | | | | | | Due to higher memory consumption of LVM, kernel, anaconda and other running processes in general our current memory limits are insufficient and the increase is neccessary. I am also introducing additional check for URL installs which require another 108 MB from the ramdisk, no need to penalize other install methods. This is the current memory budget: - unpacked initrd takes 63 MB - running processes (anaconda, loader, udev, nm): 67 MB (estimate) - peak LVM memory consumption: up to additional 56 MB - with URL install install.img takes additional: 108 MB - memory requriements of X additional: 256 MB (estimate) Currently we always expect there will be calls to lvm (though we could do another memory check just at the moment where the necessity arises). All of the estimates are on the upper bound, still I am running into OOM easily with text install+http stage2+lvm detection with the old limits.
* memory: build auditd as a standalone binary and run it so (#549653).Ales Kozumplik2010-05-062-6/+11
| | | | | | Instead of just forking, we fork() anaconda and then execv our custom audit daemon. This saves us an extra anaconda process running permanently, taking memory.
* imount: allow bind mounts.Ales Kozumplik2010-04-232-6/+21
|
* Adjust the Makefiles to install anaconda to /usr/lib{,64}/python?.?.Chris Lumens2010-04-061-4/+3
| | | | You know, like anaconda's any other python module.
* Unlock the CD tray door in isys.ejectcdrom() (#569377)Peter Jones2010-03-251-0/+6
| | | | | Since we're leaving the cd drive door locked in loader, we need to make isys's eject routines unlock the door first, or eject will fail.
* Remove isys/str.c, replace calls with glib.h or string.h calls.David Cantrell2010-03-244-157/+4
| | | | | | | | | str.c was from a time when loader was still a statically linked binary. Times have changed. Removed str.c and replaced calls with either string.h or glib.h functions. For g_ascii_strup() and g_ascii_strdown(), those functions dup the passed in string, change it, and return that.
* make sure the new logging also works when isys is imported as a python module.Ales Kozumplik2010-03-082-0/+10
| | | | | | We can also call the isys' mount through python bindings. To log those calls, init method has to be called from python beforehand. That's what this commit is trying to do.
* use the new logging approach in imount.cAles Kozumplik2010-03-081-32/+57
| | | | Done by using the new logProgramMessage() function in log.c.
* allow logging into program.log and syslog through log.cAles Kozumplik2010-03-082-22/+73
| | | | | Introduces logProgramMessageMethod() to do the logging for output of external programs. New FILE has to be opened and held by log.c.
* log.c: factor out common parts from logMessageV()Ales Kozumplik2010-03-081-12/+14
| | | | So the code doesn't repeat itself as much.
* static variable rename in log.cAles Kozumplik2010-03-081-22/+22
| | | | Part of the refactoring done to be able to correctly log program calls.
* move log.c from loader into isys.Ales Kozumplik2010-03-083-1/+223
| | | | | | This is in preparation to use logging from imount.c. We don't want a dependency of isys on loader, instead move logging code into isys and change loader sources to use the log.h header in isys.
* 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
|