summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * fixed glob()-related hang in slxldd.Oliver Tappe2007-07-221-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1270 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed compatibility problems of our config-files with regards to beingOliver Tappe2007-07-221-1/+4
| | | | | | | executed by shells: there is no whitespace allowed before or after the equal sign in shell-var assignments git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1269 95ad53e4-c205-0410-b2fa-d234c58c8868
* * first part of configuration file migration to Config::GeneralOliver Tappe2007-07-211-19/+11Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1268 95ad53e4-c205-0410-b2fa-d234c58c8868
* * minor cleanup (two uninit values)Oliver Tappe2007-07-211-2/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1267 95ad53e4-c205-0410-b2fa-d234c58c8868
* * base work towards utf8-cleanness (it is now possible to handle vendor-OSesOliver Tappe2007-07-211-10/+17
| | | | | | | | | whose name contain UTF8-characters * fixed problem with locale-specific number format being used during DB- creation (fixes the problem that database access would only work once for de_DE-locales [reported by Detlef Schulz]) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1266 95ad53e4-c205-0410-b2fa-d234c58c8868
* * replaces most occurrences of confess() with croak(), as that is less noisy.Oliver Tappe2007-07-182-2/+0Star
| | | | | | | Confess()-ing can still be triggered by specifying --debug-confess on the commandline. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1249 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-102-1/+15
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * adjusted example settings file to match new local-URL formatOliver Tappe2007-07-066-16/+16
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1230 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved checkFlags() from Utils to Basics and used it there (in Oliver Tappe2007-07-022-25/+31
| | | | | | InstantiateClass()) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1218 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-015-130/+233
| | | | | | | 'use of uninitialized values', a couple of which might still show up * adjusted all code with respect to passing perlcritic level 4 and 5 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1207 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-202-25/+30
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 95ad53e4-c205-0410-b2fa-d234c58c8868
* largish change with respect to configurable paths:Oliver Tappe2007-06-172-79/+139
| | | | | | | | | | | | | | | | | | | | * instead of supporting configurable paths at different hierarchy levels, there are now only five configurable folder: + base-path (/opt/openslx), fixed at installation time + config-path (/etc/opt/openslx), fixed at installation time + private-path (/var/opt/openslx), freely configurable by user + public-path (/srv/openslx), freely configurable by user + temp-path (/tmp), freely configurable by user this closes ticket#143 * several holes have been plugged concerning the creation of folders before they are accessed, closing ticket#142 * the functionality of generating config default folders has been moved from the Makefile into a new Perl-module (ConfigFolder.pm), in order to be available to the Perl-scripts, too * slxsettings has been changed to reflect the nature of base-path and config-path as fixed paths git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1172 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed all warnings indicated by 'perl -w'Oliver Tappe2007-06-131-108/+135
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1162 95ad53e4-c205-0410-b2fa-d234c58c8868
* * (hopefully) fixed problem with respect to wget repeatedly failing withOliver Tappe2007-05-297-2/+94
| | | | | | | | | | | | | | 'files exists' errors under some circumstances: we now simply remove that file and try again * renamed 'export-filter.local' to 'export-filter' and 'clone-filter.local' to 'clone-filter' * completed example files for clone-filter and export-filter for all distros * split distro-info in two parts: the static, shared part (now living in /opt/openslx/share) and the configurable part living in /etc/opt/openslx. This is the last part of settings file related changes, closing ticket#122 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1106 95ad53e4-c205-0410-b2fa-d234c58c8868
* * part two of settings file related changes (ticket#122): Oliver Tappe2007-05-287-0/+0
| | | | | | | - removed '.local' ending from several files git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1104 95ad53e4-c205-0410-b2fa-d234c58c8868
* * part one of settings file related changes (ticket#122): Oliver Tappe2007-05-287-6/+20
| | | | | | | | - 'settings.default' now lives in /opt/openslx/share - 'settings.local' has been renamed to 'settings' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1103 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for 'local:'-URLs, which trigger the automatic start of a Oliver Tappe2007-05-287-22/+44
| | | | | | | | | | | | busybox-httpd for each repository, through which every request will be routed (thus giving access to files outside of the chroot) * renamed executeInSubprocess() to callInSubprocess() and added a real implementation of executeInSubprocess(), too * updated all settings.local.example files to reflect the new way of accessing local files git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1102 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed slxsystem to ignore SIGPIPE instead of exiting, as this used to causeOliver Tappe2007-05-281-4/+10
| | | | | | problems when smart failed to download a package from a source. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1094 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added utility function followLink() and made use of itOliver Tappe2007-05-131-1/+18
| | | | | | | * reworked search for required kernel modules to be able to return the matching paths to the caller (not currently used though) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1069 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented a simple registration mechanism for cleanup functions in order to Oliver Tappe2007-05-111-0/+32
| | | | | | improve the reliability of cleaning up in case of user interrupts git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1048 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved instantiateClass() from OpenSLX::Utils to OpenSLX::BasicsOliver Tappe2007-05-072-23/+25
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1023 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed fsmods and nicmods as extended settings, as they now live in the ↵Oliver Tappe2007-05-061-3/+0Star
| | | | | | default system git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1017 95ad53e4-c205-0410-b2fa-d234c58c8868
* * renamed 'ossetup-max-retry-count' to 'ossetup-max-try-count' and started ↵Oliver Tappe2007-05-021-1/+1
| | | | | | | | | to use it in OSSetup::Engine. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@989 95ad53e4-c205-0410-b2fa-d234c58c8868
* overhaul the settings concept:Oliver Tappe2007-05-021-1/+11
| | | | | | | | | | * now all settings live in the settings file, no more settings table in the DB * clearified slxsettings and its options * removed all references to db table 'settings' * added some new extended settings git-svn-id: http://svn.openslx.org/svn/openslx/trunk@988 95ad53e4-c205-0410-b2fa-d234c58c8868
* * improved die() and warn() to fall back to the respective CORE-functions ↵Oliver Tappe2007-04-301-9/+7Star
| | | | | | | | | unless croaking has been requested. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@970 95ad53e4-c205-0410-b2fa-d234c58c8868
* Add Fedora 6 x86_64 to the systems being supported by slxos-setupRoot2007-04-299-0/+231
| | | | | | | install. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@963 95ad53e4-c205-0410-b2fa-d234c58c8868
* Add support to install suse 10.1 x86_64 with slxos-setup.Lars Müller2007-04-2910-0/+185
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@958 95ad53e4-c205-0410-b2fa-d234c58c8868