[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#678694: preseed_fetch fails with relative url



Hi Josch,

On Friday, 13 May 2022 13:02:51 CEST Johannes Schauer Marin Rodrigues wrote:
> You probably already saw Phils reply to #1010878 but if anybody else is
> reading this I also wanted to quickly record what I did to avoid the
> problem.

It appears that Phil send it to you directly (and not to the BTS)?
I did see that parts you quoted of that though, so thanks for that :-)

As it looks like this bug (678694) is likely a documentation issue, 
I'm pasting (most of) Philip's reply into this bug as well as it describes
how it is supposed to be used:

Quoting Philip Hands (2022-05-13 11:52:05)
> Johannes Schauer Marin Rodrigues <josch@debian.org> writes:
> > I'm confused. Shouldn't preseed_fetch try to obtain the setup-testbed
> > relative to the preseed file it just obtained?
>
> preseed_fetch gets things relative to the place the previous
> preseed_fetch got things from, which is one step later than you are
> expecting because it has not really been setup while you're in the
> context of the initial preseed.cfg.
>
> See:  https://salsa.debian.org/installer-team/preseed/-/blob/master/README.preseed_fetch
>
> The point is that you need to have done a preseed/include or a
> preseed/run (which can be relative paths) in order to have populated the
> previous download path, whereas I think you are trying to run the
> preseed_fetch while we're still on the first time through the code, in
> the loop above this line:
>
> https://salsa.debian.org/installer-team/preseed/-/blob/master/preseed.sh#L120
>
> I guess there should be some documentation that's easier to find than
> the above README, to say that you should not use relative paths for
> preseed_fetch from the early_command (and possibly the late_command?) in
> preseed.cfg itself, but only from within files that were grabbed via at
> least one preseed/run or preseed/include -- or something like that.
> ...
> Here's another example that may be instructive:
>
> https://hands.com/d-i/bug/846002/
>
> (which is referred to here: https://bugs.debian.org/846002#304 )

So it appears that I didn't fully/properly understand how the preseed_fetch
functionality works and/or how it is supposed to be used and therefor did it
incorrectly, causing it to fail for me.

Cheers,
  Diederik

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: