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

Re: debian installer: allow unauthenticated local repository



My apologies, this works in Stretch. I need to updated my notion of what "reasonably modern" is--failed on squeeze, worked on stretch. (I run a test suite that includes all of our legacy debian versions.)

On Mon, Apr 24, 2017 at 7:37 PM, Leroy Pubel <lepubel@gmail.com> wrote:
This didn't work. The resulting install had the local repository line in the sources.list, but, it was commented out per the comments in the example preseed.cfg which indicate repos without keys will be commented out.

On Mon, Apr 24, 2017 at 6:38 PM, Colin Watson <cjwatson@debian.org> wrote:
On Mon, Apr 24, 2017 at 06:03:43PM -0600, Leroy Pubel wrote:
> I can allow all repositories to be unauthenticated during installation with
> this preseed line:
>
> "d-i debian-installer/allow_unauthenticated boolean true"
>
> I add my local repo like this:
>
> "d-i apt-setup/local0/repository string http://
> <http://snuffleupagus.3d-p.local/3dp_local>local-ip stable testing"
>
> Is there a way to only allow one particular repository to be
> unauthenticated?

Reasonably modern versions of apt have sources.list syntax for this.
Translating to preseeding syntax, that'd be something like this:

  d-i apt-setup/local0/repository string [trusted=yes] http://...

(Fill in whatever you'd normally have after "http" - the change is just
to insert "[trusted=yes]" before it.)

--
Colin Watson                                       [cjwatson@debian.org]




Reply to: