Bug 70002 - sysinstall(8): fails to locate FTP dirs if the OS has patchlevel
Summary: sysinstall(8): fails to locate FTP dirs if the OS has patchlevel
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.9-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 16:00 UTC by Yar Tikhiy
Modified: 2015-11-10 09:12 UTC (History)
0 users

See Also:


Attachments
install.c.diff (746 bytes, patch)
2004-08-04 16:00 UTC, Yar Tikhiy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yar Tikhiy 2004-08-04 16:00:37 UTC
	sysinstall(8) uses the local system release string (kern.osrelease)
	to construct the path to the distribution directory on an FTP site.
	However, it doesn't allow for a patchlevel `-pXX' that may appear
	in the release string.  Therefore sysinstall(8) fails to locate
	distribution files (in particular, packages) on FTP if a patchlevel
	is present in the local release string.

	This may appear confusing to beginner users, who are the primary
	consumers of sysinstall(8) as a system maintenance tool.

Fix: Since the system patchlevel doesn't affect sysinstall(8) actions
in any way, we can just strip it off completely as follows:
How-To-Repeat: 
root@bsd:~#uname -sr
FreeBSD 4.9-RELEASE-p11

root@bsd:~#/stand/sysinstall
...
+------------------ User Confirmation Requested ------------------+
| Warning:  Can't find the `4.9-RELEASE-p11' distribution on this |
| FTP server.  You may need to visit a different server for       |
| the release you are trying to fetch or go to the Options        |
| menu and to set the release name to explicitly match what's     |
| available on ftp.freebsd.org (or set to "any").                 |
|                                                                 |
| Would you like to select another FTP server?                    |
+-----------------------------------------------------------------+
|                      [ Yes ]         No                         |
+-----------------------------------------------------------------+
Comment 1 Yar Tikhiy freebsd_committer freebsd_triage 2005-03-03 11:11:15 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-qa

Over to the maintainers.
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2010-07-13 14:37:30 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-sysinstall

Over to maintainer(s)
Comment 3 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:07:23 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:12:28 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.