summaryrefslogtreecommitdiffstats
path: root/lib/OpenSLX/Utils.pm
Commit message (Collapse)AuthorAgeFilesLines
* change dir structureSebastian Schmelzer2010-09-021-701/+0Star
|
* add trim to utilsSebastian2010-01-121-1/+12
|
* * fixed pretty stupid bug that involved mixed use of bufferd/non-buffered IOOliver Tappe2009-06-091-1/+1
| | | | | | | which caused locks to hang even in the same process-group (for which they should be recursable) - closes #451 git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2943 95ad53e4-c205-0410-b2fa-d234c58c8868
* Sorry, wrong r2434 - fixing problem in reply to the list ...Dirk von Suchodoletz2008-12-181-1/+2
| | | | | | | (undoing some old changes) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2435 95ad53e4-c205-0410-b2fa-d234c58c8868
* ..Dirk von Suchodoletz2008-12-171-14/+0Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2434 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fix (hopefully)Sebastian Schmelzer2008-12-171-5/+3Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2429 95ad53e4-c205-0410-b2fa-d234c58c8868
* Trying to simplify stuff in plugins (checks if a certain packageDirk von Suchodoletz2008-12-171-0/+14
| | | | | | | is installed and installing ...) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2427 95ad53e4-c205-0410-b2fa-d234c58c8868
* More general location of helper functions (to check if a certainDirk von Suchodoletz2008-12-171-0/+30
| | | | | | | binary is installed somewhere). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2426 95ad53e4-c205-0410-b2fa-d234c58c8868
* * drop trailing slashed from lock names as the respective file can't beOliver Tappe2008-09-131-0/+3
| | | | | | created otherwise git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2216 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented support for recursive file-based locksOliver Tappe2008-09-131-12/+83
| | | | | | | | | * 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
* * 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
* * added PODs to all Perl-modules in lib, documenting those functions that ↵Oliver Tappe2008-04-061-5/+236
| | | | | | | | | 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
* * 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
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-201-214/+214
| | | | | | 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
* * 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
* * 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
* * 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
* * 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
* * 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-151-0/+46
| | | | | | | | | | | | | | | | | | | | | 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
* * finished installation support for Debian-etch, Debian-sarge and UbuntuOliver Tappe2007-07-281-7/+20
| | | | | | | 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
* * reworked OpenSLX::OSSetup::Distro structure to incorporateOliver Tappe2007-07-251-2/+71
| | | | | | | | | | | | | | 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
* * replaces most occurrences of confess() with croak(), as that is less noisy.Oliver Tappe2007-07-181-1/+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-101-0/+2
| | | | | | 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-14/+0Star
| | | | | | 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-29/+87
| | | | | | | '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-1/+1
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 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
* * moved instantiateClass() from OpenSLX::Utils to OpenSLX::BasicsOliver Tappe2007-05-071-23/+1Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1023 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to copyFile for passing in the name of the target file (toOliver Tappe2007-04-261-11/+9Star
| | | | | | | rename during copy) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@928 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleanup with respect to how modules/classes are loadedOliver Tappe2007-04-141-2/+26
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@890 95ad53e4-c205-0410-b2fa-d234c58c8868
* * inserted correct copyright headerOliver Tappe2007-03-231-3/+10
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@813 95ad53e4-c205-0410-b2fa-d234c58c8868
* * linkFile() now ignores any existing link-targetOliver Tappe2007-03-171-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@780 95ad53e4-c205-0410-b2fa-d234c58c8868
* * largish overhaul, changed ConfigDB to be object-oriented (could be ↵Oliver Tappe2007-03-151-0/+1
| | | | | | | | | | | improved, though!) * slxos-setup, slxos-export, slxconfig and slxconfig-demuxer can now be run one after the other in order to get a complete setup * still problems when trying to boot that system here, need to investigate... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@774 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed non-local $/ in slurpFile()Oliver Tappe2007-03-141-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@770 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added an option to slurpFile() which causes it to not fail in case the ↵Oliver Tappe2007-03-131-2/+5
| | | | | | | | | required file doesn't exist. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@762 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added Utils.pm that contains helpful functions used throughout OpenSLXOliver Tappe2007-03-121-0/+78
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@758 95ad53e4-c205-0410-b2fa-d234c58c8868