Bug#485559: Location of tftpd folder

View: New views
13 Messages — Rating Filter:   Alert me  

Bug#485559: Location of tftpd folder

by Frank Lin PIAT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

tftpd-hpa will change the default location of the tftpd folder
from /var/lib/tftpboot to /srv/tftp (see #537656).

There was already some discussion on this topic. Would it be possible to
define the location in the policy?
See bug #485559

Thanks in advance,

Franklin






--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Daniel Baumann-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frank Lin PIAT wrote:
> tftpd-hpa will change the default location of the tftpd folder

s/will change/has changed/

> There was already some discussion on this topic. Would it be possible to
> define the location in the policy?
> See bug #485559

fwiw, using /srv/tftp as tftp server root directory is FHS conformant.

tftpd and tftpd-hpa default for this in unstable now, leaving aftpd
being the only one missing. would be nice if aftpd would just adapt.
creating a policy entry about it when there are three packages in total
implementing it, looks a bit overengineered for me (gain vs.
administrative overhead). but that's probably just me :)

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@...
Internet:       http://people.panthera-systems.net/~daniel-baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Russ Allbery-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel Baumann <daniel@...> writes:
> Frank Lin PIAT wrote:

>> There was already some discussion on this topic. Would it be possible
>> to define the location in the policy?  See bug #485559

> fwiw, using /srv/tftp as tftp server root directory is FHS conformant.

However, installing anything in that directory would not be, so I'm not
sure that it solves the problem originally expressed in the Policy bug
around this.  It would be nice to know how to handle providing files via
the tftp server, if making them automatically available is something that
people think we should have.

--
Russ Allbery (rra@...)               <http://www.eyrie.org/~eagle/>



--
To UNSUBSCRIBE, email to debian-policy-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Daniel Baumann-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Russ Allbery wrote:
>> fwiw, using /srv/tftp as tftp server root directory is FHS conformant.
>
> However, installing anything in that directory would not be

of course.

> so I'm not sure that it solves the problem originally expressed in the Policy bug
> around this.  It would be nice to know how to handle providing files via
> the tftp server, if making them automatically available is something that
> people think we should have.

even if policy would say that the server root is /srv/tfp, and even if
we would make an exception to FHS and allow packages to install stuff
inside the server root, one could not relay on /srv/tftp being the
server root anyway: tftpd-hpa, at least, does ask for the server root
through debconf.

current practise is, for e.g. pxe payloads, that packages are installing
it into /usr/lib/$package/ (syslinux, bios-memimage, etc.) and that the
sysadmin has to make them available in places he wants and at the time
he wants it. from a sysadmin point of view, this is imho the only sane
way to handle it.

Regards,
Daniel

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@...
Internet:       http://people.panthera-systems.net/~daniel-baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Bill Allombert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 20, 2009 at 01:50:27PM -0700, Russ Allbery wrote:

> Daniel Baumann <daniel@...> writes:
> > Frank Lin PIAT wrote:
>
> >> There was already some discussion on this topic. Would it be possible
> >> to define the location in the policy?  See bug #485559
>
> > fwiw, using /srv/tftp as tftp server root directory is FHS conformant.
>
> However, installing anything in that directory would not be, so I'm not
> sure that it solves the problem originally expressed in the Policy bug
> around this.  It would be nice to know how to handle providing files via
> the tftp server, if making them automatically available is something that
> people think we should have.

I agree with you on the FHS bit, of course.
Something I would like to see is d-i netboot.tar.gz provided as a Debian
package for easy set up of a d-i net installer.

Cheers,
--
Bill. <ballombe@...>

Imagine a large red swirl here.



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Daniel Baumann-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

everybody seems to agree that we agree.. what now?

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@...
Internet:       http://people.panthera-systems.net/~daniel-baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Daniel Baumann-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel Baumann wrote:
> everybody seems to agree that we agree.. what now?

atftpd mainainer replied some days ago to the bug i opened against the
atftpd that next upload will change server root to /srv/tftp as well
which means all tftpd daemons in debian will be using /srv/tftp.

what now?

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@...
Internet:       http://people.panthera-systems.net/~daniel-baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Bill Allombert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 30, 2009 at 05:04:15PM +0200, Daniel Baumann wrote:
> Daniel Baumann wrote:
> > everybody seems to agree that we agree.. what now?
>
> atftpd mainainer replied some days ago to the bug i opened against the
> atftpd that next upload will change server root to /srv/tftp as well
> which means all tftpd daemons in debian will be using /srv/tftp.
>
> what now?

I suppose someone need to draft a policy change and submit it.

Cheers,
--
Bill. <ballombe@...>

Imagine a large red swirl here.



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Daniel Baumann-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bill Allombert wrote:
> I suppose someone need to draft a policy change and submit it.

what's wrong with the text from franklin in the beginning of this very bug?

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@...
Internet:       http://people.panthera-systems.net/~daniel-baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Frank Lin PIAT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Daniel, Russ, et al.

On Mon, 2009-07-20 at 21:49 +0200, Daniel Baumann wrote:

> Frank Lin PIAT wrote:
> > tftpd-hpa will change the default location of the tftpd folder
>
> s/will change/has changed/
>
> > There was already some discussion on this topic. Would it be possible to
> > define the location in the policy?
> > See bug #485559
>
> fwiw, using /srv/tftp as tftp server root directory is FHS conformant.

I don't agree, but...

> tftpd and tftpd-hpa default for this in unstable now, leaving aftpd
> being the only one missing. would be nice if aftpd would just adapt.
> creating a policy entry about it when there are three packages in total
> implementing it, looks a bit overengineered for me (gain vs.
> administrative overhead). but that's probably just me :)

There might be an easy way to handle the situation. The policy could be
worded as:

* The /var/lib/tftpboot is the logical location for tftpd server root
  directory. It can be a directory or symlink to a directory elsewhere.

Plus the #2 of my initial proposal.
> * Serve filenames relatively to the defined tftp-root, not
>   relatively to the system root directory (/).

I would drop my initial #3 (RFC compliance) as those usually aren't in
the policy.

Rational:
1. That's very easy to manage for DDs
2. Any user should be able to cope with it.
3. It isn't overengineered.
4. <flame>This scheme allows using /srv in a FHS conformant way</flame>

Regards,

Franklin




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by martin f krafft :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

also sprach Frank Lin PIAT <fpiat@...> [2009.10.26.1726 +0100]:
> > fwiw, using /srv/tftp as tftp server root directory is FHS conformant.
>
> I don't agree, but...

Why not? That is precisely what /srv is for.

> > tftpd and tftpd-hpa default for this in unstable now, leaving aftpd
> > being the only one missing. would be nice if aftpd would just adapt.
> > creating a policy entry about it when there are three packages in total
> > implementing it, looks a bit overengineered for me (gain vs.
> > administrative overhead). but that's probably just me :)
>
> There might be an easy way to handle the situation. The policy could be
> worded as:
>
> * The /var/lib/tftpboot is the logical location for tftpd server root
>   directory. It can be a directory or symlink to a directory elsewhere.
I don't consider /var/lib logical *at all*.

--
 .''`.   martin f. krafft <madduck@...>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc (205 bytes) Download Attachment

Bug#485559: Location of tftpd folder

by Frank Lin PIAT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-10-26 at 20:36 +0100, martin f krafft wrote:
> also sprach Frank Lin PIAT <fpiat@...> [2009.10.26.1726 +0100]:
> > > fwiw, using /srv/tftp as tftp server root directory is FHS conformant.
> >
> > I don't agree, but...
>
> Why not? That is precisely what /srv is for.

The structure of /srv/ is defined by the local administrator, not by the
distribution. See FHS and Lintian[1]. note that Lintian detects 0
package with dir-or-file-in-srv.
 
As a maintainer of a package which place some files inside tftpboot, I
do need a way to know where tftpboot is (thus my previous proposals).

FYI the default location for various pacakges are:
 unstable's atftp => /var/lib/tftpboot
 unstable's tftpd-hpa => /srv/tftp
 unstable's tftpd => /srv/tftp
also
 unstable's dnsmasq => /var/ftpd (example)
 python-tftpy => /tftpboot (example)

Let's move on,

Franklin


[1] http://git.debian.org/?p=lintian/lintian.git;a=commitdiff;h=4a6efc66#patch2




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#485559: Location of tftpd folder

by Daniel Baumann-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frank Lin PIAT wrote:
>> Why not? That is precisely what /srv is for.
>
> The structure of /srv/ is defined by the local administrator, not by the
> distribution. See FHS and Lintian[1]. note that Lintian detects 0
> package with dir-or-file-in-srv.

i see no reason to re-repeat what i've already told twice within this
bug, but to not give the impression of 'there are no more followups,
there must be no objection': i still object with the same reasoning as
before, what i stated before still holds true.

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@...
Internet:       http://people.panthera-systems.net/~daniel-baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...