Hello, As I were writing an email about the consistency of tftpboot directory, I fount a previous debian-policy thread[1] where it seemed that a consensus were already met. (If you wonder why I'm interested with this, see [2])
I've worked on the following policy snippet. As far as I am concerned, I would rather make the default location compulsory, and probably drop "tftp-get-root-location" then. Here it is. Your comments/amendments are welcome : --- START --- 11.12 Packages providing a tftp server Packages that provides a tftp server (tftpd) which meets the criteria listed below should declare in their control data that they provide the virtual package tftp-server. To be a tftp-server, a program must: * Provide a TFTP service compatible with RFC 783 and 1350. * Serve filenames relatively to the defined tftp-root, not relatively to the system root directory (/). * Provide a program named "/usr/bin/tftp-get-root-location" which returns the location of tftp root, as currently configured and enabled by the system owner. And it should : * Define /srv/tftp as the default tftp root directory. Note : The tftp-server is not expected to follow/serve symbolic links (due to chroot). --- END --- I have also attached a typical "tftp-get-root-location" script (for tftpd-hpa, but it should be simple to adapt for other daemons). Franklin Piat P.S. Please, CC me, I'm not subscribed to the list. [1] http://lists.debian.org/debian-policy/2005/03/msg00046.html [2] http://www.klabs.be/~fpiat/linux/debian/di-netboot-assistant/
tftp-get-root-location
Description: application/shellscript