summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * fixed possible hiding of error messages when something goes wrong in aOliver Tappe2008-08-121-3/+4
| | | | | | | module that is being loaded dynamically (specifically the case when a plugin is trying to load the most appropriate Distro module) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2033 95ad53e4-c205-0410-b2fa-d234c58c8868
* Added new distro-info for OpenSUSE 11.0 (simple string replacement,Dirk von Suchodoletz2008-08-1010-0/+1201
| | | | | | | but this certainly would not be sufficient ...) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2019 95ad53e4-c205-0410-b2fa-d234c58c8868
* * increased robustness against leaking resources by ignoring INT-signals whenOliver Tappe2008-06-081-1/+5
| | | | | | trying to release a resource (a.k.a. umount a folder) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1868 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switch default meta-packager for SUSE-10.2 onwards from smart to zypperOliver Tappe2008-06-084-4/+0Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1862 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved code from MakeInitRamFS::Engine that determines the list of availableOliver Tappe2008-05-311-0/+26
| | | | | | | | busybox applets into a separate function * use this function in OSSetup::Engine instead of relying on busybox.links, which may not be kept in sync. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1827 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem in module loading code that under some circumstances led to ↵Oliver Tappe2008-05-251-7/+6Star
| | | | | | | | | modules being loaded several times (which in turn produced warnings about functions being redefined) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1800 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed a problem with a failing child process passing the death gate by ↵Oliver Tappe2008-05-241-7/+8
| | | | | | | | | throwing - this resulted in the seemingly weirdest behaviour of the config-demuxer (which was actually the child process trying to demux from within the chroot) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1795 95ad53e4-c205-0410-b2fa-d234c58c8868
* * make sure to remove all warning- and error-indicator strings already containedOliver Tappe2008-05-241-2/+2
| | | | | | in message before adding a new one git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1791 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed warning indicator from '°°°' to '! ' in order to avoid ↵Oliver Tappe2008-05-241-2/+2
| | | | | | | | possible charset encoding problems ('°' is non-ascii) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1786 95ad53e4-c205-0410-b2fa-d234c58c8868
* * renamed --verbose-level to --log-level to make it more separate from ↵Oliver Tappe2008-04-071-7/+7
| | | | | | --verbose. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1729 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added PODs to all Perl-modules in lib, documenting those functions that ↵Oliver Tappe2008-04-065-183/+756
| | | | | | | | | are meant to be used by other OpenSLX components (i.e. scripts and plugins) * applied minor cleanups and convenience extensions to a couple of functions git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1722 95ad53e4-c205-0410-b2fa-d234c58c8868
* * made names of distro module consistent across OpenSLX - now the always ↵Oliver Tappe2008-04-061-4/+73
| | | | | | | | | | | | start with a capital letter followed by all lowercase (Debian, Fedora, Gentoo, Suse, Ubuntu) * refactored loading of distro modules into a separate function (loadDistroModule() in Basics.pm) * finished support to logging to a file in syslog plugin * worked at desktop plugin (still not working, though) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1721 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added TODO about missing documentationOliver Tappe2008-03-311-0/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1710 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Changed check of syscall from die() to warn() in order to let the callerOliver Tappe2008-03-271-1/+1
| | | | | | | continue. Of course, this ain't going to fix anything, but it might help to see what's going wrong after failing to enter 32-bit personality. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1700 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Switched from explicit cleanup functions to "resource acquisition by ↵Oliver Tappe2008-03-242-59/+100
| | | | | | | | | definition", implemented by the new ScopedResource class. This change improves robustness with respect to signals and unexpected errors and makes the code cleaner. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1678 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved syscall related code into a module of its own rightOliver Tappe2008-03-231-0/+56
| | | | | | | * activated mounting of /proc again in startSession() and finishSession(), this time in a more robust fashion (which tries hard to unmount it again) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1677 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added sigtrap protection (against user pressing CTRL-C, for instance) and madeOliver Tappe2008-03-231-12/+21
| | | | | | | sure that any pending cleanup functions are invoked upon unload of module * some formatting corrections git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1676 95ad53e4-c205-0410-b2fa-d234c58c8868
* * improved error handling when trying to load plugin-specific distro modules ↵Oliver Tappe2008-03-201-7/+10
| | | | | | | | (now the actual error should be shown) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1663 95ad53e4-c205-0410-b2fa-d234c58c8868
* Checked in with wrong directory name (double underline) Dirk von Suchodoletz2008-03-2010-0/+0
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1659 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-2043-7606/+7606
| | | | | | May need some manual corrections here and there, but should basically be ok. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1658 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed bogus packages called 'gpg-pubkey' - we handle those explicitly, ↵Oliver Tappe2008-03-174-24/+0Star
| | | | | | anway. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1640 95ad53e4-c205-0410-b2fa-d234c58c8868
* * intermediate checking for new desktop plugin (successor of displaymanagerOliver Tappe2008-03-151-1/+5
| | | | | | with extended scope) - does not work yet, so please do not use! git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1634 95ad53e4-c205-0410-b2fa-d234c58c8868
* Same for SuSE10.3 64bit ...Dirk von Suchodoletz2008-03-1111-3/+1209
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1620 95ad53e4-c205-0410-b2fa-d234c58c8868
* Quickhack (incomplete) to add distro data for SuSE10.3 32bit.Dirk von Suchodoletz2008-03-1110-0/+1208
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1619 95ad53e4-c205-0410-b2fa-d234c58c8868
* * made hostIs64Bit() available as util functionOliver Tappe2008-03-111-0/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1615 95ad53e4-c205-0410-b2fa-d234c58c8868
* added new ubuntu versionsSebastian Schmelzer2008-03-0124-0/+2324
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1587 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem with respect to prefixing paths to absolute linksOliver Tappe2008-02-141-2/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1542 95ad53e4-c205-0410-b2fa-d234c58c8868
* * slurpFile now supports returning the file as an array of linesOliver Tappe2008-02-011-5/+13
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1507 95ad53e4-c205-0410-b2fa-d234c58c8868
* * warnings are now indicated by '°°°', errors by '***'Oliver Tappe2008-02-011-3/+9
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1506 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to spitFile() for setting the mode of theOliver Tappe2008-01-221-3/+7
| | | | | | file, too git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1486 95ad53e4-c205-0410-b2fa-d234c58c8868
* * use mkpath() instead of system()Oliver Tappe2008-01-161-3/+4
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1478 95ad53e4-c205-0410-b2fa-d234c58c8868
* reimplemented splashy stuff via Theme plugin:Oliver Tappe2008-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * activated invocation of init-hooks * removed explicit splashy calls from init (they are now done in several init-hooks provided by the Theme plugin) * the stage3 plugins are now invoked via '.' instead via a separate shell, such that they can export changed environment variables * changed invocation of initial_boot() - we now pass in the list of initscripts as otherwise I have been unable to let this function access a changed D_INITSCRIPTS variable (it would only see initial content) * moved invocation of initial_boot from servconfig to init (again such that a changed D_INITSCRIPTS will be handled correctly) * config-demuxer now passes the active plugins into mkdxsinitrd * mkdxsinitrd accepts a list of active plugins (-p) and copies the hooks directly into the initialramfs, such that they are available immediately in stage3 The bootsplash stuff (splashy) seems to work properly, but the handling of displaymanager themes is currently broken. I will look into that tomorrow. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1472 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed default for 'pxe-theme' from 'openslx' to unset to stay compatibleOliver Tappe2008-01-121-1/+1
| | | | | | with old setting (avoid suprising users with unwanted PXE-theming) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1467 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed encoding problem of PXE-config file outputOliver Tappe2008-01-111-4/+20
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1463 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added two new global settings:Oliver Tappe2008-01-111-0/+2
| | | | | | | | | | + 'pxe-theme' contains the name of the theme to apply to PXE default is 'openslx' + 'pxe-theme-menu-margin' contains the margin size for the PXE menu default is '9' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1460 95ad53e4-c205-0410-b2fa-d234c58c8868
* cleaned up installation code in several ways:Oliver Tappe2007-12-3032-57/+960
| | | | | | | | | | | | | | | | | | | | | * Removed some inconsistencies with respect to the separation of prereq- and bootstrap-packages, such that now all packages are being installed properly into the final system (the prereq packages have to installed twice for this). Before, the prereq packages were being installed without their scripts ever being run. While I haven't noticed a specific bug caused by this, the mere possibility seemed a good enough cause to change this. * added a default /etc/hosts file to all distros, as otherwise the lookup of localhost is flaky (at best) * fixed a multiple inclusion bug when expanding the packages of a selection * improved and clarified structure of selections: + now there is always a 'minimal' selection, on which most others are based + the default selection is now merely a different name for some other selection (currently, minimal or textmode, later this should probably be gnome or kde). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1438 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added default debconf database for openslx systems based onOliver Tappe2007-11-091-0/+16
| | | | | | | | debian-3.1, which is used to preselect the default encoding [I must have missed to commit this file when I worked on Debian-3.1 several months ago] git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1406 95ad53e4-c205-0410-b2fa-d234c58c8868
* * small cleanupOliver Tappe2007-09-231-2/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1344 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added readPassword() to Utils.pm, a function which fetches a passwordOliver Tappe2007-09-231-0/+13
| | | | | | from the terminal (via readline). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1342 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switched from perl-based distro-configuration files to "real" configurationOliver Tappe2007-08-1559-106/+7730
| | | | | | | | | | | | | | | | | | | | | files (handled by Config::General) * removed most version specific distribution modules (only Debian-3.1 remains as it requires some special treatment). For all the other distributions, the specific info is now contained in the configuration files * added configuration files (settings.default) for every supported distribution (only Fedora is still missing some info) * added support for inclusion of (externally generated) mirror lists and automatic selection of the five best (fastest) mirrors from that list (20 are tried). For each repository, a mirror configuration file is created (in /etc/opt/openslx/distro-info/<distro>/mirrors/<repo>) after that info has been gathered. * added current mirror lists for each distribution repository to the distro-info hierarchy * updated settings.example to reflect new configuration syntax git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1322 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added 64-bit targets for Ubuntu 6.10, 7.04 and Debian 4.0 (3.1 doesOliver Tappe2007-08-056-0/+30
| | | | | | | | not officially support the amd64 architecture) * Debian-4.0_amd64 is now the OpenSLX build platform for 64-bit git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1318 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped support for CSV databases, as they are simply not good enoughOliver Tappe2007-07-311-1/+3
| | | | | | | | | | | | * added support for db-user and db-passwd: + the mysql backend will now ask for the password upon connect + you can specify the db-user and db-passwd via slxsettings (so you never have to enter it manually afterwards) * slxsettings now checks db-type against an explicit pattern to avoid problems caused by typos git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1295 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards Debian & Ubuntu support, Debian-4.0, Ubuntu-6.10Oliver Tappe2007-07-303-0/+11
| | | | | | | & Ubuntu-7.04 seem to be working ok, now. Only Debian-3.1 refuses to install any kernel, tsk! git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1283 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished installation support for Debian-etch, Debian-sarge and UbuntuOliver Tappe2007-07-286-7/+41
| | | | | | | are nearly done (Ubuntu still missing a kernel ...) * some more refactorings to accommodate Debian-support git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1282 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed several class interfaces as a result of trying to integrate supportOliver Tappe2007-07-281-4/+4
| | | | | | | | for Debian & Ubunto installation (which is still not complete, though) * fixed some bugs along the way (especially the meta-packagers trying to invoke a private function of OpenSLX::OSSetup::Engine) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1281 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added example settings file for ubuntu-6.10Oliver Tappe2007-07-261-0/+9
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1278 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added default /etc/hosts file that allows resolution ofOliver Tappe2007-07-251-0/+1
| | | | | | 'localhost' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1276 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reworked OpenSLX::OSSetup::Distro structure to incorporateOliver Tappe2007-07-252-18/+182
| | | | | | | | | | | | | | a distro specific hierarchy level in addition to the distro & version specific files. The latter will be converted to config-files soon. * moved string2Array() and chrootInto() from OpenSLX::OSSetup::Engine to OpenSLX::Utils to make them available to other callers * started work on ubuntu & debian installation (not done yet) * cleaned interface of OpenSLX::OSSetup::Engine (separated public from private methods) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1275 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reduced use of Config::General to object-oriented mode only, as it isOliver Tappe2007-07-251-1/+2
| | | | | | | cleaner and avoids the risks of automatic imports being changed between versions (a problem Reiner has mentioned) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1273 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped our own implementation of glob() - that was a fix at the wrong place.Oliver Tappe2007-07-221-10/+1Star
| | | | | | We now explicitly ecode the string before we are printing it. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1271 95ad53e4-c205-0410-b2fa-d234c58c8868