Date: Tue, 09 Nov 2010 14:53:39 +0100 From: Dominic Fandrey <kamikaze@bsdforen.de> To: Oliver Fromme <olli@lurza.secnetix.de> Cc: freebsd-hubs@freebsd.org Subject: Re: /pub/FreeBSD or /FreeBSD Message-ID: <4CD95263.2070208@bsdforen.de> In-Reply-To: <201011091230.oA9CUXVV075331@lurza.secnetix.de> References: <201011091230.oA9CUXVV075331@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09/11/2010 13:30, Oliver Fromme wrote: > > Dominic Fandrey wrote: > > I have an application that does parallel package downloads from > > a list of mirrors and the different Layouts cause me some trouble. > > > > A lot of mirrors locate everything in /FreeBSD instead of > > /pub/FreeBSD. Mirrors that don't follow the /pub/FreeBSD layout > > are currently subject to unnecessary load caused by my application > > and cause significant CPU load on my side. > > Traditionally the FreeBSD tree was placed in /pub/FreeBSD > because that's the location where sysinstall looks for the > installation sets and packages. It can be a symlink, too. > > You can find the set of paths where sysinstall looks for > the installation data on FTP servers at the beginning of > the file src/usr.sbin/sysinstall/ftp.c (reformatted): > > /* List of sub directories to look for under a given FTP server. */ > const char *ftp_dirs[] = { > ".", > "releases/"MACHINE, > "snapshots/"MACHINE, > "pub/FreeBSD", > "pub/FreeBSD/releases/"MACHINE, > "pub/FreeBSD/snapshots/"MACHINE, > NULL > }; > > where MACHINE is "i386", "amd64" etc. The first of those > directories that does exists and contains a subdirectory > naming the desired release (e.g. 8.2-RELEASE) will be used > to download the installation data. Typically, that's the > second to last entry: /pub/FreeBSD/releases/8.2-RELEASE Thanks a lot, I'm currently using: /pub/FreeBSD/ports/$ARCH/packages-$BRANCH/Latest for the PACKAGESITE logic. I don't know what to make of this, yet. But I think this might turn out to be useful information. > A similar algorithm is used to locate packages, distfiles > for ports, documentation files and possibly other data. I never intended probing in my architecture. It will cause me some headaches, but I think I will have to add it. > There are some mirrors that have the FreeBSD data somewhere > else, including /FreeBSD, for example. If one of those is > used for installation with sysinstall, the FTP path has to > be changed manually in the options screen of sysinstall. > > I think all of the "official" mirrors (i.e. those who can > be found in the .freebsd.org domain) use /pub/FreeBSD, so > it works with sysinstall out of the box, without having to > modify any options. As mentioned above, it can also be a > symlink. Does sysinstall support http, too? I'd expect it to if it uses fetch(3). Any way, I think I have to write a script to discern the magnitude of the issue. Regards, Dominic -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CD95263.2070208>