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

Alkis Georgopoulos 1014496 at bugs.launchpad.net
Mon Jun 18 07:08:15 UTC 2012


Once the LTSP client boots, login, and run:
ltsp-localapps xterm
An xterm will open. Inside it, run:
tftp server -v -c get /ltsp/i386/lts.conf

If your TFTP server has a problem with that, and it wasn't a problem
with the LTSP code or with your DHCP configuration (e.g. producing
duplicate //ltsp/i386/lts.conf or something), then report the bug to
your TFTP server, as other TFTP servers have problems _without_ the
leading / (and those should be fixed too btw).

** Changed in: ltsp (Ubuntu)
       Status: New => Incomplete

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