summaryrefslogtreecommitdiffstats
path: root/config-db/slxconfig-demuxer
Commit message (Collapse)AuthorAgeFilesLines
* * fixed potential use of undefined value (spotted by Michael)Oliver Tappe2008-02-091-39/+36Star
| | | | | | | * cmdline options are now collected in a hash instead of individual variables, as this is much clearer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1523 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleaned up the code a bit with respect to the handling of target systemsOliver Tappe2008-02-031-18/+29
| | | | | | | | | * clearified the output about which systems have been demuxed and which were just linked into the PXE menu * fixed incorrect counting of systems that had their configuration written * updated docs to current state git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1514 95ad53e4-c205-0410-b2fa-d234c58c8868
* * the config-demuxer no longer writes the configurations for all systemsOliver Tappe2008-02-031-4/+11
| | | | | | | | if one or more specific targets have been given. Only target systems get their configuration written, their kernel copied and their initramfs generated. All other systems are just incorporated into the PXE menu. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1512 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switched config-demuxer over to internal generation of initramfsOliver Tappe2008-02-021-84/+1Star
| | | | | | * obsoleted mkdxsinitrd git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1511 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bugs that stopped new-style initramfs from workingOliver Tappe2008-02-021-2/+2
| | | | | | | | | * added support to new-style initramfs generator for integrating the active plugins into the initramfs With these fixes, I have been able to boot a cloned suse-10.2 into KDM with both bootsplash- and displaymanager-theme working. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1510 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for creating only the initramfs for the systems thatOliver Tappe2008-02-021-20/+57
| | | | | | | | | | | | have been given on the cmdline (the demuxing will still be done for all systems). * as a result of this, the generated initramfs-files now contain the id of the system as part of their name instead of a per-vendor-OS counter - the latter has become cumbersome now that we no longer generate all initramfs in every run. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1509 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished initial re-implementation of mkdxsinitrd in perl -Oliver Tappe2008-02-011-12/+30
| | | | | | there's still stuff missing and it has not been tested, either git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1508 95ad53e4-c205-0410-b2fa-d234c58c8868
* Hopefully finished the adjustments of the tools with respect to themeOliver Tappe2008-01-271-5/+4Star
| | | | | | | | | | | | | | | | | | naming and other recent discussions of user interface. * adjusted and simplified code to the fact that plugins are now named in all lowercase * slxos-plugin --verbose list now shows description for each plugin and a list of supported attributes * fixed some outstanding issues with respect to lowercasing of plugin names * Separated theme::name into theme::splash, theme::displaymanager and theme::desktop, leading to DB-schema 0.24. Please note that although these attributes exist, currently only theme::splash is being used (the new ones will be used by the reimplemented mkdxsinitrd) * moved some information gathering from OSPlugin::Engine into OSPlugin::Roster, where it belongs git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1500 95ad53e4-c205-0410-b2fa-d234c58c8868
* * corrected commentOliver Tappe2008-01-261-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1494 95ad53e4-c205-0410-b2fa-d234c58c8868
* * extract debug-level from kernel_params and add pass itOliver Tappe2008-01-221-0/+6
| | | | | | to MakeInitramFS::Engine git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1484 95ad53e4-c205-0410-b2fa-d234c58c8868
* * it is now possible to cause slxconfig-demuxer to use theOliver Tappe2008-01-161-11/+53
| | | | | | | new, internal code for generating the initialramfs (option --makeinitramfs) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1480 95ad53e4-c205-0410-b2fa-d234c58c8868
* * the config-demuxer now passes through theme::name to mkdxsinitrd (via -s)Oliver Tappe2008-01-141-1/+4
| | | | | | | | | | | | * set default for theme::name to 'openslx' such that our theme is now automatically active for all systems that have the 'Theme' plugin active. I tested setting theme::name to something else (in my case: openSUSE), copied the required theme-files to /opt/openslx/share/themes and it worked as expected (a.k.a the bootsplash showed the new theme). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1474 95ad53e4-c205-0410-b2fa-d234c58c8868
* reimplemented splashy stuff via Theme plugin:Oliver Tappe2008-01-131-15/+23
| | | | | | | | | | | | | | | | | | | | | | | | * 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 with script-internal default PXE-templateOliver Tappe2008-01-121-9/+11
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1469 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed 'uninitialized value' warningOliver Tappe2008-01-121-4/+6
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1468 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added hook mechanism to initramfs-init which can be used by pluginsOliver Tappe2008-01-111-2/+0Star
| | | | | | | | | | | to trigger execution of their own script at a certain point in the initramfs-init execution path. This is not active yet * added basic implementation outline for Theme (a.k.a splash) plugin - unable to test anything, though, as VMware does not seem to provide a VESA framebuffer, so splashy won't run git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1466 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed encoding problem of PXE-config file outputOliver Tappe2008-01-111-4/+3Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1463 95ad53e4-c205-0410-b2fa-d234c58c8868
* * oops, remove debug output :-/Oliver Tappe2008-01-111-2/+0Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1462 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to the config-demuxer for PXE-theming, i.e. it will lookOliver Tappe2008-01-111-6/+31
| | | | | | | | | | | | | | | | | | | | at the contents of the 'pxe-theme' setting and then try to activate the PXE-theme with the given name. That includes these actions: - an optional template is still loaded and the PXE theme config file is appended to it (such that the theme configuration overrides and/or extends the general PXE-template) - the last background picture referenced by the PXE configuration is copied to the target folder - the menu margin is set according to the 'pxe-theme-menu-margin' setting - any separator lines are rendered as appropriate for the given margin - if any system has a description, it is formatted as appriopriate for the given margin and added to the PXE menu as a TEXT HELP block The whole setup seems to work properly, except for a charset conversion bug concerning the data that has come from the DB (label and description) Thanks go to Michael for his great work on the PXE theme! git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1461 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new column 'description' to system, which holds an optionalOliver Tappe2008-01-111-12/+38
| | | | | | | | | | descriptive text that is going to be shown via PXE TEXT (as outlined by Michael in his work on PXE themes) * made setup of DB upgrade functions less error-prone (it is now harder to forget parts of the necessary setup) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1458 95ad53e4-c205-0410-b2fa-d234c58c8868
* * the config-demuxer now only demuxes attributes of active plugins that haveOliver Tappe2008-01-091-2/+6
| | | | | | been installed into the current system's vendor-OS. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1455 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several occurrences of 'attr_'-namesOliver Tappe2008-01-091-8/+9
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1453 95ad53e4-c205-0410-b2fa-d234c58c8868
* * several fixes related to the handling of plugin-specific attributesOliver Tappe2008-01-091-24/+29
| | | | | | by the config-demuxer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1452 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished refactoring of attribute handling code, especially theOliver Tappe2008-01-071-27/+28
| | | | | | | | | | | | | merging of attributes, such that all tests are passed * tested and finished implementation of group support in slxconfig * added new class AttributeRoster which keeps track of the known attributes (the ones provided by the openslx core and any other ones that may have been added by some plugin). * added new option --list-attributes to slxconfig which shows information about all known attributes git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1444 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new DB-field attr_ramfs_miscmods to system tableOliver Tappe2007-10-051-0/+3
| | | | | | | | | | | * added support to slxconfig-demuxer for passing attr_ramfs_miscmods to mkdxsinitrd, such that it will be asked to copy the miscellaneous modules, too. N.B.: However this does not seem to work for vesafb, as the result was an empty directory 'vesafb.ko' in the initramfs. Does not seem right to me, at least ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1371 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped 'pxe'-subfolder for PXE-stuff since most installations put thatOliver Tappe2007-08-311-10/+9Star
| | | | | | | into the TFTP-server's root folder and we better be compatible [thanks Michael!]. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1331 95ad53e4-c205-0410-b2fa-d234c58c8868
* * ConfigDB-objects now reuse active DB-connections in order to reduce theOliver Tappe2007-08-011-3/+3
| | | | | | | | number of times any script asks for the db-password (and to reduce the number of used resources, too). * minor cleanup in slxconfig-demuxer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1302 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Fixed another bug reported by Bastian:Oliver Tappe2007-07-311-5/+7
| | | | | | | | | | | | | Default-client & -system recognition was dependant on the ID 0, which is not really possible with mysql (I do not count changing the server-global variable autoincrement_offset as an option). Now, we simply use the name instead. * changed slxconfig to reflect the direct relations between systems and clients, not the aggregated ones, as I found it confusing this way (slxconfig is rather a low-level tool). * minor cleanup in ConfigDB.pm git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1294 95ad53e4-c205-0410-b2fa-d234c58c8868
* * base work towards utf8-cleanness (it is now possible to handle vendor-OSesOliver Tappe2007-07-211-1/+1
| | | | | | | | | 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
* * now a dummy hostname ('slx-client') is set in initramfs-setup, just to haveOliver Tappe2007-07-061-0/+1
| | | | | | any hostname in case the client is not using a dhcp client. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1226 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for os-plugins:Oliver Tappe2007-07-031-15/+76
| | | | | | | | | | | | + added script slxos-plugin, which must be invoked to install a plugin into a vendor-OS + added handling of plugins to slxconfig-demuxer + added folder structure for plugins (below 'os-plugins') + implemented one simple plugin, called 'Example' which contains a couple of hints how to write own plugins git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1220 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-011-33/+42
| | | | | | | '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
* * implemented support for generating a separate initramfs-setup as part ofOliver Tappe2007-06-241-137/+169
| | | | | | | | | the initramfs, machine-setup is now transported via Conf-TGZ only. N.B.: Couldn't apply this to the 4.1.0 branch since init has diverted a little too much for my liking! Will look into this next week. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1189 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cosmetical change of info textOliver Tappe2007-06-201-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1184 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-201-17/+17
| | | | | | | 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-40/+51
| | | | | | | | | | | | | | | | | | | | * 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-1/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1162 95ad53e4-c205-0410-b2fa-d234c58c8868
* Make vesamenu.c32 available for optional useFelix Endres2007-06-011-0/+5
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1132 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added missing quotes around attribute values when creating machine-setup;Oliver Tappe2007-05-221-1/+1
| | | | | | this lead to error messages in stage3-init when some values contain whitespace git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1089 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed incorrect use of quotemeta() when copying configuration folders,Oliver Tappe2007-05-161-7/+21
| | | | | | | | | | | fixes problem of system- and client-specific files not being copied * Instead of overwriting attribut-files, we now append to them, in order to make use of any settings the user might have provided in the configuration folder (unless, of course, these settings are overruled by the DB). AFAIC, this currently makes sense for the root-pw only. * pass on machine-setup file to mkdxsinitrd, fixes ticket #134 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1085 95ad53e4-c205-0410-b2fa-d234c58c8868
* * updated PODOliver Tappe2007-05-161-10/+21
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1083 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added utility function followLink() and made use of itOliver Tappe2007-05-131-2/+3
| | | | | | | * 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
* * minor cleanupOliver Tappe2007-05-111-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1045 95ad53e4-c205-0410-b2fa-d234c58c8868
* * minor cleanup of PODs with respect to Eclipse syntax highlightingOliver Tappe2007-05-091-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1036 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to exporter modules for passing out the required fs-modulesOliver Tappe2007-05-061-4/+9
| | | | | | | * improved config-demuxer to ask exporter for required fs-mods and pass this to mkdxsinitrd git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1019 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added option -S to mkdxsinitrd in order to pass in the system nameOliver Tappe2007-05-061-0/+2
| | | | | | | | | | | * replaced $DISTRO by $DISTRO_NAME and $DISTRO_VER * added $SYSTEM_NAME and used it at a couple of places where $DISTRO was used before * removed the two tries to fetch the config-tgz without any system name, as these are never generated by the demuxer anyway. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1007 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed machine-setup not being generated for client-specific config-TGZsOliver Tappe2007-05-051-6/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1004 95ad53e4-c205-0410-b2fa-d234c58c8868
* * mkdxsinitrd now determines DISTRO and DISTRO_VER from the given ROOTPATHOliver Tappe2007-05-051-3/+0Star
| | | | | | | * removed old DISTRO detection code from mkdxsinitrd git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1001 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reworked exporting of default-/system-/client-configurations (TGZs) accordingOliver Tappe2007-05-051-34/+94
| | | | | | | | | to recent discussion - closes ticket #126 * fixed a couple of bugs relating to aggregation of attributes * improved robustness against strange client/system names git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1000 95ad53e4-c205-0410-b2fa-d234c58c8868