This setup would be great and make life easier for the average user without making the story complicated (i.e. a system with downloads working out of the box without hassles)
Also ports.tar.gz fetch would be one further hassle less. Il 24/set/2014 23:36 "Romain FABBRI - Alien Consulting" < romain.fab...@alienconsulting.net> ha scritto: > One think that could be done without hammering servers when you install > from CD would be to add a question to the install script : > > Would you like to define the PKG PATH ? : > - [1] : propose mirrors based on the timezone given (and then provide a > menu and you just have to select the proxy) > - [2] : manually define PKG PATH (type the string, could even check if the > path seems valid) > - [3] : nope thanks > > But would it really help much ? > > Romain > > -----Message d'origine----- > De : owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] De la part de > Alexander Hall > Envoyé : mercredi 24 septembre 2014 23:20 > à : Ville Valkonen > Cc : PPC Miscellaneous Discussions > Objet : Re: Why are there no PKG_PATH defaults? > > On 09/24/14 23:09, Ville Valkonen wrote: > > Out of curiosity, what's wrong with the one that installer uses? > > Nothing, however the installer only cares about a mirror if you actually > install from one of them. If you install from e.g. CD, you don't have a > selected mirror. > > If you do install or upgrade (I'm pretty sure) from a mirror, > /etc/pkg.conf will be updated accordingly. > > /Alexander > > > > > -- > > Regards, > > Ville > > > > On 24 September 2014 19:34, Alexander Hall <alexan...@beard.se> wrote: > >> On September 24, 2014 6:09:04 PM CEST, openda...@hushmail.com wrote: > >>>> Indeed, the installer only creates that if you install from a > >>> mirror. Apart from that, as someone else pointed out, which mirror > >>> should one choose? > >>> > >>> Cool, I didn't know that. > >>> > >>> Then, in the event that someone installed via an ISO or some > >>> pre-defined VM (ie. a DigitalOcean droplets) -- how about a one-time > >>> script upon first root login to ask for such info? > >>> > >>> You do not have a `PKG_PATH` set for `pkg_add`. Would you like us > >>> to set it for you? (Y/n) y > >>> > >>> Choose your nearest mirror: > >>> > >>> 1. Continent > >>> 2. Whatever > >>> 3. ... > >>> > >>> There is currently no ports collection in `/usr/ports`. Would you > >>> like us to get it for you? (Y/n) > >> > >> I can't speak for others, but I'd be terribly annoyed by this. > >> > >> Also, the script isn't trivial. Feel free to give it a go, share and > use it for your own sake, but I'd be surprised to see it go in. > >> > >> /Alexander > >> > >>> > >>> Thanks! > >>> > >>> O.D. > >>> > >>> On 24. september 2014 at 1:05 PM, "Alexander Hall" wrote:On > >>> September 24, 2014 12:44:14 PM CEST, openda...@hushmail.com wrote: > >>>>> Because /etc/pkg.conf ? > >>>> > >>>> Sorry, no such file over here. > >>> > >>> Indeed, the installer only creates that if you install from a mirror. > >>> Apart from that, as someone else pointed out, which mirror should > >>> one choose? > >>> > >>> /Alexander > >>> > >>>> > >>>> O.D. > >>>> > >>>> On 23. september 2014 at 1:47 PM, "Alexander Hall" wrote:On > >>> September > >>>> 23, 2014 3:00:41 PM CEST, openda...@hushmail.com wrote: > >>>>> Hi, > >>>>> > >>>>> Expanding on the whole > >>>>> http://en.wikipedia.org/wiki/Convention_over_configuration thing > >>>>> -- why aren't there any sane PKG_PATH defaults? Ie.: > >>>>> > >>>>> release=$(uname -r) > >>>>> architecture=$(uname -p) > >>>>> > >>>>> export > >>>>> PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/${release}/packages/${a > >>>>> rchitecture}/ > >>>> > >>>> Because /etc/pkg.conf ? > >>>> > >>>> /Alexander > >>>> > >>>>> > >>>>> Thanks! > >>>>> > >>>>> O.D.