summaryrefslogtreecommitdiffstats
path: root/lib/OpenSLX/Basics.pm
Commit message (Collapse)AuthorAgeFilesLines
* change dir structureSebastian Schmelzer2010-09-021-856/+0Star
|
* added default menu entry to pxe menuMichael Janczyk2009-12-181-0/+1
|
* suppress error from #463 cp: cannot stat ↵Michael Janczyk2009-07-031-1/+1
| | | | | | /mnt/opt/openslx/lib/plugins/desktop/themes/gdm/... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2991 95ad53e4-c205-0410-b2fa-d234c58c8868
* no need for different syslinux dirs, now everything inside syslinuxMichael Janczyk2009-07-031-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2990 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed a whole lot of circular references which I found when researching #451Oliver Tappe2009-06-091-1/+9
| | | | | | * some minor cleanups along the way git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2944 95ad53e4-c205-0410-b2fa-d234c58c8868
* added version 3.73 of pxelinux to trunkMichael Janczyk2009-04-031-1/+0Star
| | | | | | | | | | | added pxechain which allows to chainload pxelinux.0 from different tftp server, so ip prefixes are no longer needed (dirk read about this feature) removed tftp-server-ip from slxsettings again ;) added small kernel and small initrd which only executes 'echo sub >/proc/sysrq-trigger' introducing menu-include / menu-botton (s. Readme.pxe) it's for testing now... if it's to complicated it can be simplyfied or removed again git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2800 95ad53e4-c205-0410-b2fa-d234c58c8868
* disputable realization of pxe-theme as defaultMichael Janczyk2009-04-021-2/+6
| | | | | | | | | | | | | | | | | | openslx theme will now be used as default all theming definitions should take place in a separate file general configuration should take place via slxsettings pxe-passwd='secret' pxe-theme='openslx' pxe-timeout='100' pxe-title='Welcome to OpenSLX' pxe-totaltimeout='600' tftp-server-ip='132.230.4.4' for further tests an include file in etc/opt could be used, which will be loaded at the end i had to introduce tftp-server-ip in slxsettings since i need the ip for (vesa)menu.c32 and the image do you thionk it's to complicated now? we can still change it, any better ideas, simplifications? git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2793 95ad53e4-c205-0410-b2fa-d234c58c8868
* * in an attempt to solve #399 (and #398), we now mount the host's perl coreOliver Tappe2009-03-201-6/+0Star
| | | | | | | | path into the vendor-OS before chrooting into it for every plugin, which seems to solve the dynamic loading issue described in these two tickets git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2749 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented support for recursive file-based locksOliver Tappe2008-09-131-0/+1
| | | | | | | | | * used improved locking mechanism to protect not only slxconfig-demuxer against being executed twice, but also to avoid two different process groups from chrooting into the same vendor-OS git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2213 95ad53e4-c205-0410-b2fa-d234c58c8868
* * 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
* * 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-061-145/+329
| | | | | | | | | 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
* * Switched from explicit cleanup functions to "resource acquisition by ↵Oliver Tappe2008-03-241-59/+9Star
| | | | | | | | | 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
* * 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
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-201-352/+352
| | | | | | 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
* * 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
* * 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
* * 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
* * 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
* * switched from perl-based distro-configuration files to "real" configurationOliver Tappe2007-08-151-5/+8
| | | | | | | | | | | | | | | | | | | | | 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
* * 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-301-0/+1
| | | | | | | & 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-281-0/+1
| | | | | | | 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
* * reworked OpenSLX::OSSetup::Distro structure to incorporateOliver Tappe2007-07-251-16/+111
| | | | | | | | | | | | | | 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
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-101-1/+13
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved checkFlags() from Utils to Basics and used it there (in Oliver Tappe2007-07-021-11/+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-011-49/+114
| | | | | | | '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-201-24/+29
| | | | | | | 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-171-79/+29Star
| | | | | | | | | | | | | | | | | | | | * 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
* * part one of settings file related changes (ticket#122): Oliver Tappe2007-05-281-2/+4
| | | | | | | | - '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-281-2/+20
| | | | | | | | | | | | 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
* * 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-071-0/+24
| | | | 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