[Bug 1014496] Re: ltsp doesn't recognise tftp lts.conf

Stefan Breitegger 1014496 at bugs.launchpad.net
Mon Jun 18 07:52:22 UTC 2012


Hello,

tftpd-hpa: both versions work (ltsp/i386/lts.conf, /ltsp/i386/lts.conf)
tftpd (netkit-tftp): this one works: ltsp/i386/lts.conf

Have fun!

-- 
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:
  Incomplete

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