On 08/23/2012 04:56 PM, Matt Taggart wrote: > I was thinking it would be nice if you could specify different mirrors > for build time vs runtime. For example you might want > > * to build using a local approx cache, but have the result use > public mirrors > * to build using a public mirror, but have the result use an approx > cache that is only accessable to the machines you will be booting > it on (and not the build machine, current the debirf build just > blocks if you attempt this). > > Maybe DEBIRF_MIRROR_BUILD could be for the build-time mirror and if it's > not set then it could default to DEBIRF_MIRROR?
I like this idea, but i'd prefer to have the special variable be DEBIRF_MIRROR_RUNTIME somehow. That is, my main conception of DEBIRF_MIRROR is that it tells debirf where to pull from when it's building the image. debirf images themselves might never pull from an apt repository in their life. Another approach with the same results would be to introduce a module that just replaces (or augments) /etc/apt/sources.list. This has the advantage of being more flexible by permitting you to specify more than one repository, specifying an additional repository in addition to the main one, etc. What do you think makes the most sense? --dkg
signature.asc
Description: OpenPGP digital signature