[Bug 192194] New: bsdinstall ignoring BSDINSTALL_DISTSITE defined environment variable for mirrorselect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 28 17:47:28 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192194

            Bug ID: 192194
           Summary: bsdinstall ignoring BSDINSTALL_DISTSITE defined
                    environment variable for mirrorselect
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: whatexercise+bugsfreebsdorg at gmail.com

Created attachment 145081
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145081&action=edit
Patch for mirrorselect to respect previously defined BSDINSTALL_DISTSITE

Per bsdinstall man page for BSDINSTALL_DISTSITE: "Most targets (e.g. auto and
jail) that prompt for a FreeBSD mirror will skip that step if this variable is
already defined in the environment.". This is not happening and FreeBSD mirror
is prompted for.


To reproduce using FreeBSD 10.0 release:

for sh:
BSDINSTALL_DISTSITE=ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/10.0-RELEASE
export BSDINSTALL_DISTSITE

for csh:
setenv BSDINSTALL_DISTSITE
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/10.0-RELEASE

Run the command and work through the menus.
bsdinstall

Note how "Mirror Selection" appears. This should not happen.

What should happen is for "Mirror Selection" menu not appearing and
installation continues with bsdinstall fetching the required packages from the
provided BSDINSTALL_DISTSITE location.


Attached is a patch for mirrorselect to follow the documented behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list