summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Engine.pm
Commit message (Collapse)AuthorAgeFilesLines
...
* * added support for stage1 attributes that are stored along each plugin ↵Oliver Tappe2008-03-141-2/+5
| | | | | | | | | installed into a vendor-OS. * an update of the slxos-plugin documentation is still missing (coming soon ;-) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1633 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for specifying more than one base selection (e.g. base = ↵Oliver Tappe2008-03-121-6/+11
| | | | | | kde,gnome) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1627 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added missing call to fetchInstalledPlugins() in case the vendor-OSOliver Tappe2008-03-081-0/+2
| | | | | | | | already exists - causing automatic re-installation of plugins after a re-installation or re-cloning of a vendor-OS to work. Well, at least I hope it does fix it - as it's not yet tested. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1611 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cosmetical fix (indentation)Oliver Tappe2008-03-011-12/+12
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1594 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed dependency on linux/personality.ph at least to that regard that we nowOliver Tappe2008-03-011-18/+35
| | | | | | | | | | | | | | try to build it manually (from /usr/include/linux/personality.h) if the host OS does not provide it (/usr/include/sys/personality.h is tried as an alternative, too). I hope that this fixes the problems encountered when trying to install a 32-bit vendor-OS on a 64-bit Ubuntu. * fixed attempt to start local http servers for each instance of OSSetup::Engine (now a package global hash manages these). * fixed bug in invocation of meta-packager method installSelection() that caused slxos-setup to die with a message about the package "1 not being known". git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1593 95ad53e4-c205-0410-b2fa-d234c58c8868
* added ubuntu 8.04Sebastian Schmelzer2008-03-011-0/+6
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1588 95ad53e4-c205-0410-b2fa-d234c58c8868
* * OSPlugin::Engine now provides a real support interface for plugins, whichOliver Tappe2008-02-271-11/+38
| | | | | | | | | can be used to get info about the vendor-OS and distro, install/uninstall packages, download files (and more stuff to come). * Adjusted OSSetup::Engine and OSSetup::MetaPackager to the demands of the new support interface. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1580 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for specifying additional rsync options via environment Oliver Tappe2008-02-251-1/+3
| | | | | | | variable SLX_RSYNC_OPTIONS (for both cloning and exporting) * log rsync-cmd with verbose-level=2 when exporting a vendor-OS git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1571 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Added support to slxos-setup for automatically installing the default set ofOliver Tappe2008-02-171-2/+55
| | | | | | | | | plugins (or the already defined set of plugins of an existing vendor-OS). This way, updating a vendor-OS (which might pull a new kernel) will automatically trigger the reinstallation of all plugins that had previously been installed in that vendor-OS. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1559 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added explicit error message about trying to apply actions to the Oliver Tappe2008-02-171-0/+3
| | | | | | | | | | | '<<<default>>>' vendor-OS (which is going to be introduced, soon) * slxos-export list-exported now uses the usual export name format (<vendor-OS-name>::<export-type>) * when listing the installed vendor-OSes, plain files are now filtered out (only directories can contain a vendor-OS) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1555 95ad53e4-c205-0410-b2fa-d234c58c8868
* cleaned up installation code in several ways:Oliver Tappe2007-12-301-8/+6Star
| | | | | | | | | | | | | | | | | | | | | * 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
* * when setting up the resolver for stage1a, we now copy nsswitch.conf fromOliver Tappe2007-11-291-1/+2
| | | | | | | the host system, too, as otherwise the resolver would not work on a opensuse-10.3 host (so nothing can be installed). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1411 95ad53e4-c205-0410-b2fa-d234c58c8868
* Cleanup, (empty) files for new Ubuntu 7.10 ...Dirk von Suchodoletz2007-10-191-0/+6
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1389 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problems with respect to installation of prerequired packagesOliver Tappe2007-09-261-5/+40
| | | | | | | | | | * added support for setting the root-password: + slxos-setup now queries for the root-password + 'busybox cryptpw' is used to determine the hashed password as required by the specific distribution (MD5 or Blowfish) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1349 95ad53e4-c205-0410-b2fa-d234c58c8868
* Hope it's OK that way to add upcoming SuSE10.3 to the list ofDirk von Suchodoletz2007-08-281-2/+8
| | | | | | | | "supported" OS ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1326 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem reported by Dirk that caused debian-3.1Oliver Tappe2007-08-211-1/+1
| | | | | | | installations to fail during first try (but work when retrying). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1324 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switched from perl-based distro-configuration files to "real" configurationOliver Tappe2007-08-151-117/+355
| | | | | | | | | | | | | | | | | | | | | 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-051-17/+26
| | | | | | | | 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
* * finished support for installation of Debian & Ubuntu. Things seem to beOliver Tappe2007-08-031-1/+3
| | | | | | | | working more or less fine now. Some systems I have tested do not boot into the graphical environment automatically, but that may be a problem in stage3 (as manually invoking gdm works). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1313 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem reported by Bastian about pickKernelFile not correctly beingOliver Tappe2007-07-311-7/+9
| | | | | | | | used (turned out to be a problem when loading the distro-module for clone-only distributions) * cleaned up the distro module structure while looking at it git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1293 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards Debian & Ubuntu support, Debian-4.0, Ubuntu-6.10Oliver Tappe2007-07-301-4/+4
| | | | | | | & 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-19/+6Star
| | | | | | | 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-82/+101
| | | | | | | | 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
* * fixed two incorrect method calls (using public name instead of private one),Oliver Tappe2007-07-261-2/+2
| | | | | | reported by Detlef Schulz git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1277 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reworked OpenSLX::OSSetup::Distro structure to incorporateOliver Tappe2007-07-251-151/+106Star
| | | | | | | | | | | | | | 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
* * minor cleanup (two uninit values)Oliver Tappe2007-07-211-1/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1267 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for automatic selection of most appropriate (newest) kernelOliver Tappe2007-07-201-0/+7
| | | | | | | | | | | | if the kernel file specified by DB (in most cases: vmlinuz) does not exist. A warning will be printed by slxconfig-demuxer if the kernel had to be picked this way. This should allow slxconfig-demuxer to work for ubuntu & debian, as those do not always provide a vmlinuz-link (and in general this change makes the system more robust). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1265 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed (another) problem when trying to import a vendor-OS that isn't fullyOliver Tappe2007-07-201-8/+13
| | | | | | | supported (which can only be cloned). This time, things work not only for Debian (for which empty Distro-modules exist), but for *all* distributions. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1263 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed one more use of an uninitialzed valueOliver Tappe2007-07-181-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1247 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed two bugs that inhibited the importing of vendor-OSes that are notOliver Tappe2007-07-181-8/+24
| | | | | | fully supported yet (i.e. that were cloned). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1246 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-101-0/+37
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * revitalised local URLsOliver Tappe2007-07-071-8/+13
| | | | | | | * simplified format of local URLs to consist of only a path * adjusted meta-packagers to use mirrors only in case of non-local URLs git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1232 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for os-plugins:Oliver Tappe2007-07-031-1/+49
| | | | | | | | | | | | + 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-319/+488
| | | | | | | '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
* Tried to add Ubuntu 7.04 to the list of cloneable systems.Dirk von Suchodoletz2007-07-011-0/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1206 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for creating the squashfs only if the vendor-OS has beenOliver Tappe2007-06-201-0/+16
| | | | | | | | changed since the last export. 'Changed' in this context means that the vendor-OS has been re-installed, updated, re-cloned or had a chrooted shell invoked. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1182 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-201-72/+72
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for invoking a chrooted shell for any installed vendor-OS,Oliver Tappe2007-06-191-0/+37
| | | | | | | in order to simplify doing any manual changes to the vendor-OS. invoke 'slxos-setup shell <vendor-os>' to start the chrooted shell git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1175 95ad53e4-c205-0410-b2fa-d234c58c8868
* largish change with respect to configurable paths:Oliver Tappe2007-06-171-6/+6
| | | | | | | | | | | | | | | | | | | | * 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
* * (hopefully) fixed problem with respect to wget repeatedly failing withOliver Tappe2007-05-291-25/+42
| | | | | | | | | | | | | | '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 one of settings file related changes (ticket#122): Oliver Tappe2007-05-281-1/+1
| | | | | | | | - '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-3/+62
| | | | | | | | | | | | 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
* * fixed bug introduced with last commit, package-installation was hosedOliver Tappe2007-05-281-5/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1101 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added explicit invocation of 'ldconfig' to all distros, just to make sure ↵Oliver Tappe2007-05-281-3/+0Star
| | | | | | | | that ld.so.cache is up-to-date after an install or update (clone should be working, too). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1099 95ad53e4-c205-0410-b2fa-d234c58c8868
* * before an update, the meta-packager is automatically adjusted to the one ↵Oliver Tappe2007-05-281-4/+18
| | | | | | | | that was used during installation of that specific system git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1097 95ad53e4-c205-0410-b2fa-d234c58c8868
* * integrated mirror support into yum & smart backendOliver Tappe2007-05-281-16/+2Star
| | | | | | | | | | * fixed smart backend with respect to being restarted (it no longer stops, waiting for you to enter an alternative name for any existing channel) * the use of mirrors can now be deactivated with SLX_NO_MIRROR=1, very useful for development git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1095 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added packages needed by the smart metapackager backendOliver Tappe2007-05-271-4/+12
| | | | | | | | * split packages required by the different meta-packagers (currently for SUSE only, as other distros do not [yet?] support more than one meta-packager) * tested smart & yum on 32-bit, both work ok git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1092 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to packager for getting a list of the packages that areOliver Tappe2007-05-181-1/+12
| | | | | | | already installed git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1087 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrect execution of chroot with respect to setting up theOliver Tappe2007-05-131-32/+25Star
| | | | | | | | meta-packager repositories: that needs to be done inside the chroot, too * adjusted yum to setup its repository while chrooted git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1075 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed fatal error in case a distro-info does not specify excludesOliver Tappe2007-05-121-2/+14
| | | | | | | | * improved handling of clone sources to make sure they always end with a slash, as otherwise "bad things happen"(tm) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1058 95ad53e4-c205-0410-b2fa-d234c58c8868