From 6b9673a3c146fe5e2dc2a0aac3b65f89ef1a4945 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 29 Sep 2006 17:24:19 +0000 Subject: * 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 --- initramfs/initrd-stuff/etc/functions | 5 +++-- initramfs/initrd-stuff/init | 2 +- 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 -- cgit v1.2.3-55-g7522