[Bug 1014496] Re: ltsp doesn't recognise tftp lts.conf
Alkis Georgopoulos
1014496 at bugs.launchpad.net
Mon Jun 18 08:08:54 UTC 2012
> Then just put that path in your DHCP configuration
I meant, ltsp/i386/pxelinux.0. LTSP then tries to locate lts.conf in the
same subdir, either absolute or relative, however it was specified in
DHCP.
> tftpd (netkit-tftp): this one works: ltsp/i386/lts.conf
But since `tftp server -v -c get /ltsp/i386/lts.conf` doesn't work, then
it's either a problem in netkit-tftp, or in your netkit-tftp
configuration.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/1014496
Title:
ltsp doesn't recognise tftp lts.conf
Status in “ltsp” package in Ubuntu:
Invalid
Status in “netkit-tftp” package in Ubuntu:
New
Bug description:
Hi all,
If you see in the /opt/ltsp/i386/usr/share/ltsp/init-
ltsp.d/05-getltsconffile:
# default to "/ltsp/i386/lts.conf".
if [ -n "$SERVER" ]; then
fileonly=${filename##*/}
pathonly=${filename%$fileonly}
lts_conf_temp=$(mktemp)
tftp "$SERVER" -c get ${pathonly:-/ltsp/i386/}lts.conf $lts_conf_temp >/dev/null
# only overwrite lts.conf if it has non-zero size.
if [ -s "$lts_conf_temp" ]; then
mv "$lts_conf_temp" /etc/lts.conf
else
rm "$lts_conf_temp"
fi
fi
# Get the lts.conf vars into the environment
. /usr/share/ltsp/ltsp_config
~
the leading / at "pathonly:-/ltsp/i386/}lts.conf $lts_conf_temp
>/dev/null" confuses the netkit-tftp in ubuntu 12.04 amd64
I solved the tftp-problem by editing the /opt/ltsp/i386/usr/share/ltsp
/init-ltsp.d/05-getltsconffile:
-- tftp "$SERVER" -c get ${pathonly:-/ltsp/i386/}lts.conf $lts_conf_temp >/dev/null
++ tftp "$SERVER" -c get ${pathonly:-ltsp/i386/}lts.conf $lts_conf_temp >/dev/null
Now the tftp-server I able to push the lts.conf to the clients.
Please fix.
Have fun!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1014496/+subscriptions
More information about the foundations-bugs
mailing list