[email protected] said:
> 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. ...
FWIW the idea of presenting the list of mirrors suddenly starts to make
sense, as now there is no browser in base install. But
Alexander Hall said:
> I can't speak for others, but I'd be terribly annoyed by this.
I absolutely agree with this sentiment.
In my opinion, the best way to present list of mirrors would be to
provide a command for fetching it, either in pkg_add(1) or in root.mail
(the message root "recieves" upon completion of installation). As I
prefer the latter way, patch to root.mail follows.
--
Dmitrij D. Czarkoff
Index: root.mail
===================================================================
RCS file: /var/cvs/src/etc/root/root.mail,v
retrieving revision 1.104
diff -u -p -r1.104 root.mail
--- root.mail 15 Jul 2014 22:05:29 -0000 1.104
+++ root.mail 24 Sep 2014 22:05:12 -0000
@@ -36,7 +36,9 @@ full list of packages for each architect
ftp://ftp.openbsd.org/pub/OpenBSD/5.6/packages/
If you do not find a package you want on the CD, please go look at your
-nearest FTP mirror site.
+nearest FTP mirror site. To get a list of available mirrors, execute:
+
+ ftp -o - http://ftp.openbsd.org/cgi-bin/ftplist.cgi
Select your architecture and download the tarballs of your choice. For example
to install the emacs package for amd64, execute: