summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Tappe2006-09-29 19:24:19 +0200
committerOliver Tappe2006-09-29 19:24:19 +0200
commit6b9673a3c146fe5e2dc2a0aac3b65f89ef1a4945 (patch)
tree80dc1df4831892d335085d8ed85fb191e1256c30
parent* fixed typo (diff)
downloadcore-6b9673a3c146fe5e2dc2a0aac3b65f89ef1a4945.tar.gz
core-6b9673a3c146fe5e2dc2a0aac3b65f89ef1a4945.tar.xz
core-6b9673a3c146fe5e2dc2a0aac3b65f89ef1a4945.zip
* hopefully cleared up issue with tftpboot-prefix, as we expect the tftp-server
to serve from SLX_TFTPBOOT_PATH, we only need to request 'client-config' as it's a relative path. If that is changed, the slxconfig-demuxer needs to be changed accordingly, or the automatic setup won't work anymore. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@411 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--initramfs/initrd-stuff/etc/functions5
-rwxr-xr-xinitramfs/initrd-stuff/init2
2 files changed, 4 insertions, 3 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 4a441550..cefd7a26 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -431,8 +431,9 @@ if [ -n "$FILESRC" ] ; then
tftpserver=$(uri_token $FILESRC server)
tftpgetunpack $tftp $cfgfile $tftpserver
else
- # fixme: We need to know the prefix somehow
- cfgdir="/tftpboot/client-conf"
+ # we expect the tftp-server to serve from $SLX_TFTPBOOT_PATH, so we
+ # just use the relative path from that here:
+ cfgdir="client-config"
local tftpserver=$serverip
# try to get configuration files successively; start with distro client
# and try last distro default ...
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index 022b45f4..6353d286 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -103,7 +103,7 @@ in $0\ncountry=\"${COUNTRY}\"" >> /etc/machine-setup
;;
# if (external, via tftp) configuration file retrieval should be
# triggered, if no source is given try dhcp server and predefined
- # standard path (~/tftpboot/client-conf/ ...)
+ # standard path (.../tftpboot/client-config/ ...)
file)
FILE="yes"
rm /tmp/file-done