On 06/08/2011 17:05, Vincent Hoffman wrote:
> On 06/08/2011 15:48, Nathan Whitehorn wrote:
>> On 08/05/11 10:58, Lars Engels wrote:
>>> On Wed, Aug 03, 2011 at 09:03:22PM +0200, Marc Fonvieille wrote:
>>>> On Wed, Aug 03, 2011 at 08:28:34PM +0200, Marc Fonvieille wrote:
>>>>>
>>>>> [...]
>>>>>
>>>>> Hmm I think it's "default" PACKAGESITE env variable pointing on
>>>>> non-existing
>>>>> ftp://ftp.freebsd.org/pub/FreeBSD/ports/<arch>/packages-9-beta1/Latest/
>>>>>
>>>>>
>>>> I'm wrong, I did an install and same behavior as Bruce.
>>>> I looked in /tmp/bsdinstall_log:
>>>>
>>>> Running installation step: docsintall
>>>> pkg_add: unable to fetch
>>>> 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/en-freebsd-doc.tbz'
>>>> by URL
>>>                                    ^^^^^^
>>> I haven't looked at bsdinstall lately, but IIRC there's no dialog that
>>> offers a mirror selection? It would be nice to select a nearby server.
>> For the regular distfiles (base, kernel, etc.) you can pick a mirror,
>> but installing packages (e.g. documentation) relies on the behavior of
>> pkg_add -r.
>> -Nathan
> So it should be doable by using the PACKAGEROOT env variable?
Had 10 minutes and did a quick POC patch to have the PACKAGEROOT env
variable set from the mirror selected at the mirrorselect stage.
I'm not claiming it will do more than work for me or that its well
written but just in case anyone is interested in improving/reimplementing.
patch is attached.

Vince
>> _______________________________________________
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to
>> "freebsd-current-unsubscr...@freebsd.org"
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Index: scripts/docsinstall
===================================================================
--- scripts/docsinstall (revision 224732)
+++ scripts/docsinstall (working copy)
@@ -28,6 +28,7 @@
 
 
 exec 3>&1
+[ ! -z  $1 ] && export PACKAGEROOT=$1 
 DOCS=$(dialog --backtitle "FreeBSD Installer" \
     --title "FreeBSD Documentation Installation" --separate-output \
     --checklist "This menu will allow you to install the whole documentation 
set
Index: scripts/auto
===================================================================
--- scripts/auto        (revision 224732)
+++ scripts/auto        (working copy)
@@ -83,13 +83,16 @@
 
 if [ -n "$FETCH_DISTRIBUTIONS" ]; then
        exec 3>&1
-       BSDINSTALL_DISTSITE=$(`dirname $0`/mirrorselect 2>&1 1>&3)
+       BSDINSTALL_DISTSITES=$(`dirname $0`/mirrorselect 2>&1 1>&3)
        MIRROR_BUTTON=$?
        exec 3>&-
        test $MIRROR_BUTTON -eq 0 || error
+       BSDINSTALL_DISTSITE=${BSDINSTALL_DISTSITES#* }
+       PKG_MIRROR=${BSDINSTALL_DISTSITES% *}
        export BSDINSTALL_DISTSITE
+       export PKG_MIRROR
+
 fi
-
 rm $PATH_FSTAB
 touch $PATH_FSTAB
 
@@ -197,7 +200,7 @@
                finalconfig
                ;;
        "Handbook")
-               bsdinstall docsinstall
+               bsdinstall docsinstall $PKG_MIRROR
                finalconfig
                ;;
        "Shell")
Index: scripts/mirrorselect
===================================================================
--- scripts/mirrorselect        (revision 224732)
+++ scripts/mirrorselect        (working copy)
@@ -212,4 +212,4 @@
 esac
 
 export BSDINSTALL_DISTSITE
-echo $BSDINSTALL_DISTSITE >&2
+echo $BSDINSTALL_DISTSITE $MIRROR>&2
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to