diff options
author | Oliver Tappe | 2007-04-13 14:24:20 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-04-13 14:24:20 +0200 |
commit | 509331481b4d63786f8e7fede82a842e56702e6e (patch) | |
tree | 6805f08df72056aaecb05114c820c9f14e6dd2e5 | |
parent | * added support for building selections on top of other selections. You can i... (diff) | |
download | core-509331481b4d63786f8e7fede82a842e56702e6e.tar.gz core-509331481b4d63786f8e7fede82a842e56702e6e.tar.xz core-509331481b4d63786f8e7fede82a842e56702e6e.zip |
* changed POD back from documenting 'add' to 'export', as 'adding' an export that
already exists is odd (as pointed out by Dirk). Actually, both forms are still accepted.
* added automatic creation of a default system for an added export, that uses the
standard kernel of the vendor-OS (vmlinuz).
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@884 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r-- | installer/OpenSLX/OSExport/Engine.pm | 4 | ||||
-rwxr-xr-x | installer/slxos-export | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/installer/OpenSLX/OSExport/Engine.pm b/installer/OpenSLX/OSExport/Engine.pm index 03c4c224..6329f245 100644 --- a/installer/OpenSLX/OSExport/Engine.pm +++ b/installer/OpenSLX/OSExport/Engine.pm @@ -237,8 +237,10 @@ sub addExportToConfigDB 'type' => $self->{'export-type'}, } ); - vlog 0, _tr("Export '%s' has been added to DB (ID=%s).\n", + vlog 0, _tr("Export '%s' has been added to DB (ID=%s)...\n", $exportName, $id); + # now create a default system for that export, using the standard kernel: + system("slxconfig add-system $exportName"); } $openslxDB->disconnect(); diff --git a/installer/slxos-export b/installer/slxos-export index b3af06d4..7890166e 100755 --- a/installer/slxos-export +++ b/installer/slxos-export @@ -153,7 +153,7 @@ slxos-export [options] <action> =over 8 -=item B<< add <vendor-OS-name> <export-type> >> +=item B<< export <vendor-OS-name> <export-type> >> exports the vendor-OS with the given name using the given export type and adds it to the config-DB, too @@ -236,7 +236,7 @@ Prints the version and exits. =head3 Exporting a Vendor-OS via NFS -=item B<< slxos-export add suse-10.2 nfs >> +=item B<< slxos-export export suse-10.2 nfs >> Exports the installed vendor-OS suse-10.2 via nfs, the resulting NFS-export will live in C</srv/openslx/export/nfs/suse-10.2>. @@ -247,7 +247,7 @@ resulting NFS-export will live in C</srv/openslx/export/nfs/suse-10.2>. =over 8 -=item B<< slxos-export add ubuntu-6.10 nbd-squash >> +=item B<< slxos-export export ubuntu-6.10 nbd-squash >> Exports the installed vendor-OS ubuntu-6.10 via nbd-squash, the resulting Squash-FS will live in C</srv/openslx/export/nbd-squash/ubuntu-6.10>. |