From 1aa9d76870c4371535b052dd88dc331860029ed4 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 31 Aug 2007 19:48:42 +0000 Subject: * 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 --- config-db/slxconfig-demuxer | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'config-db/slxconfig-demuxer') 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 The basic PXE files (F, F) 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 For each client, a PXE configuration file will be generated and written to -F<$SLX_PUBLIC_PATH/tftpboot/pxe/pxelinux.cfg/01->. This file will +F<$SLX_PUBLIC_PATH/tftpboot/pxelinux.cfg/01->. 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 For each bootable system, that system's kernel will be copied to -F<$SLX_PUBLIC_PATH/tftpboot/pxe//kernel and an OpenSLX-specific initramfs +F<$SLX_PUBLIC_PATH/tftpboot//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//initramfs. +slxmkramfs) and put into F<$SLX_PUBLIC_PATH/tftpboot//initramfs. These two files (kernel & initramfs) will be referenced by the PXE client configuration of all clients that offer this specific system for booting. -- cgit v1.2.3-55-g7522