summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Stub files (not really matched yet) for new distributions ...Dirk von Suchodoletz2008-12-2214-0/+1538
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2443 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
* git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2408 ↵Sebastian Schmelzer2008-12-152-2/+201
| | | | 95ad53e4-c205-0410-b2fa-d234c58c8868
* git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2407 ↵Sebastian Schmelzer2008-12-156-13/+220
| | | | 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added descriptionsSebastian Schmelzer2008-12-153-0/+39
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2406 95ad53e4-c205-0410-b2fa-d234c58c8868
* * first ideas of distro based utilitiesSebastian Schmelzer2008-12-154-0/+316
| | | | | | | | | | | | | | | | | | | | | | | | | * usage: use OpenSLX::DistroUtils; # get initfile object my $initfile = newInitFile(); # modify the object $initfile->addToBlock('head', 'set some variables'); # 3rd parameter is setting the priority of the entry # default is 5 $initfile->addToBlock('head', 'set sth at the very beginning', 1); $initfile->addToBlock('start', '/bin/startsomething'); $initfile->addToBlock('stop', '/bin/stopsomething'); $initfile->setName('foo'); .. # get generated content of initfile $source = getInitFileForDistro($initfile, 'Ubuntu'); git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2405 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added ubuntu 8.10 supportSebastian Schmelzer2008-11-136-0/+581
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2382 95ad53e4-c205-0410-b2fa-d234c58c8868
* * this file was missing from last commitOliver Tappe2008-10-091-14/+49
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2280 95ad53e4-c205-0410-b2fa-d234c58c8868
* * add asm subfolder to ph-search path, tooOliver Tappe2008-10-081-0/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2276 95ad53e4-c205-0410-b2fa-d234c58c8868
* * first try at making sure that the required Perl-headers exist before we tryOliver Tappe2008-10-081-2/+9
| | | | | | to use one of them git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2275 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-132-12/+84
| | | | | | | | | * 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
* * next refactoring step: made MakeInitRamFS part of boot environmentOliver Tappe2008-09-011-0/+262
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2167 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
* 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