diff options
author | Sebastian Schmelzer | 2009-03-10 03:03:10 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2009-03-10 03:03:10 +0100 |
commit | d02fb775fe8c4244fe3868ffaed7a57e8f8caff4 (patch) | |
tree | 81664a7e4377221ce26cc2879970ad9f1835f3db /config-db | |
parent | vmchooser plugin: (diff) | |
download | core-d02fb775fe8c4244fe3868ffaed7a57e8f8caff4.tar.gz core-d02fb775fe8c4244fe3868ffaed7a57e8f8caff4.tar.xz core-d02fb775fe8c4244fe3868ffaed7a57e8f8caff4.zip |
* pxe_prefix_ip support
Usage: slxconfig change-system <system> pxe_prefix_ip=<ip>
Result: sets <ip>:: prefixes for initramfs/kernel and if no boot_uri is set
it adds file://<ip> to the pxe menu
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2706 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rw-r--r-- | config-db/OpenSLX/DBSchema.pm | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/config-db/OpenSLX/DBSchema.pm b/config-db/OpenSLX/DBSchema.pm index 976d9c6a..f11ced10 100644 --- a/config-db/OpenSLX/DBSchema.pm +++ b/config-db/OpenSLX/DBSchema.pm @@ -34,7 +34,7 @@ use OpenSLX::Basics; ### fk => foreign key (integer) ################################################################################ -my $VERSION = 0.34; +my $VERSION = 0.35; my $DbSchema = { 'version' => $VERSION, @@ -187,17 +187,18 @@ my $DbSchema = { # represents a selectable line in the PXE boot menu of all the # clients associated with this system 'cols' => [ - 'id:pk', # primary key - 'export_id:fk', # foreign key - 'name:s.64', # unique name of system, is automatically - # constructed like this: - # <vendor-os-name>-<export-type>-<kernel> - 'label:s.64', # name visible to user (pxe-label) - # if empty, this will be autocreated from - # the name - 'kernel:s.128', # path to kernel file, relative to /boot - 'description:s.512',# visible description (for PXE TEXT) - 'comment:s.1024', # internal comment (optional, for admins) + 'id:pk', # primary key + 'export_id:fk', # foreign key + 'name:s.64', # unique name of system, is automatically + # constructed like this: + # <vendor-os-name>-<export-type>-<kernel> + 'label:s.64', # name visible to user (pxe-label) + # if empty, this will be autocreated from + # the name + 'kernel:s.128', # path to kernel file, relative to /boot + 'description:s.512', # visible description (for PXE TEXT) + 'pxe_prefix_ip:s.16', # ip prefix for PXE Menu entry + 'comment:s.1024', # internal comment (optional, for admins) ], 'vals' => [ { # add default system @@ -792,6 +793,20 @@ sub _schemaUpgradeDBFrom return 1; }, + 0.35 => sub { + my $metaDB = shift; + + # add new column system.pxe_prefix_ip + $metaDB->schemaAddColumns( + 'system', + [ + 'pxe_prefix_ip:s.16', + ], + undef + ); + + return 1; + }, ); 1; |