From d02fb775fe8c4244fe3868ffaed7a57e8f8caff4 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 10 Mar 2009 02:03:10 +0000 Subject: * pxe_prefix_ip support Usage: slxconfig change-system pxe_prefix_ip= Result: sets :: prefixes for initramfs/kernel and if no boot_uri is set it adds file:// to the pxe menu git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2706 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/OpenSLX/DBSchema.pm | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'config-db') 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: - # -- - '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: + # -- + '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 @@ -790,6 +791,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; }, ); -- cgit v1.2.3-55-g7522