diff options
author | Oliver Tappe | 2007-08-31 21:48:42 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-08-31 21:48:42 +0200 |
commit | 1aa9d76870c4371535b052dd88dc331860029ed4 (patch) | |
tree | 62d9cf7881a21ae823d6bd4f6ae7ac3dd0078a1d /config-db/slxconfig-demuxer | |
parent | * added missing support for changing exports and vendor-OSes (diff) | |
download | core-1aa9d76870c4371535b052dd88dc331860029ed4.tar.gz core-1aa9d76870c4371535b052dd88dc331860029ed4.tar.xz core-1aa9d76870c4371535b052dd88dc331860029ed4.zip |
* dropped 'pxe'-subfolder for PXE-stuff since most installations put that
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
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-x | config-db/slxconfig-demuxer | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 3720e4e4..48945383 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -132,9 +132,8 @@ if (!$dryRun) { } my $tftpbootPath = "$openslxConfig{'public-path'}/tftpboot"; if (!$dryRun) { - slxsystem("rm -rf $tftpbootPath/client-config/* $tftpbootPath/pxe/*"); - slxsystem( - "mkdir -p $tftpbootPath/client-config $tftpbootPath/pxe/pxelinux.cfg"); + slxsystem("rm -rf $tftpbootPath/*"); + slxsystem("mkdir -p $tftpbootPath/client-config $tftpbootPath/pxelinux.cfg"); if (!-d $tftpbootPath) { die _tr("Unable to create or access tftpboot-path '%s'!", $tftpbootPath); @@ -346,8 +345,8 @@ sub writePXEMenus { my @infos = @_; - my $pxePath = "$tftpbootPath/pxe"; - my $pxeConfigPath = "$tftpbootPath/pxe/pxelinux.cfg"; + my $pxePath = "$tftpbootPath"; + my $pxeConfigPath = "$tftpbootPath/pxelinux.cfg"; if (!-e "$pxePath/pxelinux.0") { my $pxelinux0Path = @@ -480,7 +479,7 @@ sub writeSystemPXEFiles my $kernelFile = $info->{'kernel-file'}; my $kernelName = basename($kernelFile); - my $pxePath = "$tftpbootPath/pxe"; + my $pxePath = "$tftpbootPath"; my $pxeVendorOSPath = "$pxePath/$info->{'vendor-os'}->{name}"; mkdir $pxeVendorOSPath unless -e $pxeVendorOSPath || $dryRun; @@ -728,12 +727,12 @@ The following set of files will be created: =item B<Basic PXE Setup> The basic PXE files (F<menu.c32>, F<pxelinux.0>) will be copied into -F<$SLX_PUBLIC_PATH/tftpboot/pxe> to make them available to any PXE-client via tftp. +F<$SLX_PUBLIC_PATH/tftpboot> to make them available to any PXE-client via tftp. =item B<PXE Client Configurations> For each client, a PXE configuration file will be generated and written to -F<$SLX_PUBLIC_PATH/tftpboot/pxe/pxelinux.cfg/01-<MAC-of-client>>. This file will +F<$SLX_PUBLIC_PATH/tftpboot/pxelinux.cfg/01-<MAC-of-client>>. This file will contain information about the systems this client shall offer for booting. For each of these systems, the kernel cmdline options required for that particular system setup is specified (via PXE's APPEND option). @@ -745,9 +744,9 @@ configuration file) will use the configuration from the default client =item B<System Kernels and Initialram-Filesystems> For each bootable system, that system's kernel will be copied to -F<$SLX_PUBLIC_PATH/tftpboot/pxe/<vendor-os-name>/kernel and an OpenSLX-specific initramfs +F<$SLX_PUBLIC_PATH/tftpboot/<vendor-os-name>/kernel and an OpenSLX-specific initramfs required for booting that particular system is generated (by means of -slxmkramfs) and put into F<$SLX_PUBLIC_PATH/tftpboot/pxe/<vendor-os-name>/initramfs. +slxmkramfs) and put into F<$SLX_PUBLIC_PATH/tftpboot/<vendor-os-name>/initramfs. These two files (kernel & initramfs) will be referenced by the PXE client configuration of all clients that offer this specific system for booting. |