From nobody@FreeBSD.org  Thu Jan 24 18:09:41 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 68A9F16A418
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jan 2008 18:09:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5A96A13C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jan 2008 18:09:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0OI85A8069722
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jan 2008 18:08:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m0OI85g6069721;
	Thu, 24 Jan 2008 18:08:05 GMT
	(envelope-from nobody)
Message-Id: <200801241808.m0OI85g6069721@www.freebsd.org>
Date: Thu, 24 Jan 2008 18:08:05 GMT
From: Byron Young <bkyoung74q9@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 6.3-RELEASE install; cannot find packages/INDEX error
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119949
>Category:       amd64
>Synopsis:       [install] 6.3-RELEASE install; cannot find packages/INDEX error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 24 18:10:01 UTC 2008
>Closed-Date:    Thu Aug 28 17:30:44 UTC 2008
>Last-Modified:  Thu Aug 28 17:30:44 UTC 2008
>Originator:     Byron Young
>Release:        6.3-RELEASE
>Organization:
>Environment:
6.3-RELEASE-amd64-bootonly.iso
>Description:
After creating a local 6.3-RELEASE using the attached script, to avoid a "cannot find packages/INDEX" error during install, a symbolic 'packages -> ../packages' link must be added to 6.3-RELEASE/6.3-RELEASE.

>How-To-Repeat:
Attempt a 6.3-RELEASE install using custom FTP URL.
>Fix:
Add a packages->../packages symbolic link.

Patch attached with submission follows:

#!/bin/sh

if test "${1}" = "m"; then
 disk=1

 for i in 1 2 3 4; do
  if test -e /dev/md${disk}; then
   echo "Adjust the disk= parameter."
   exit
  fi
 done

 for i in \
  6.3-RELEASE-amd64-disc1.iso \
  6.3-RELEASE-amd64-disc2.iso \
  6.3-RELEASE-amd64-disc3.iso \
  6.3-RELEASE-amd64-docs.iso \
           ; do
   test -e /tmp/disk${disk} && rm -rf /tmp/disk${disk}
   mkdir /tmp/disk${disk}
   mdconfig -a -t vnode \
    -f "/var/ftp/pub/FreeBSD/ISO-IMAGES-amd64/6.3/${i}"  \
    -u ${disk}

  mount -t cd9660 /dev/md${disk} /tmp/disk${disk}

  disk=`expr 1 + ${disk}`
 done
elif test "${1}" = "u"; then
 for i in 1 2 3 4; do
  if test -e /tmp/disk${i}; then
   umount /tmp/disk${i}
   rmdir /tmp/disk${i}
   mdconfig -d -u $i
  fi
 done
elif test "${1}" = "c"; then
 mkdir -p /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE
 for disk in 1 2 3 4; do
  cp -pPR /tmp/disk${disk}/* /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE
 done
 (cd /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE/6.3-RELEASE; \
  ln -s ../packages packages)
 chown -Rh root:operator /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE
else
 echo "m or u or c."
fi



>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@FreeBSD.org>
To: Byron Young <bkyoung74q9@yahoo.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/119949: 6.3-RELEASE install; cannot find packages/INDEX
 error
Date: Thu, 24 Jan 2008 21:39:27 +0100

 Byron Young wrote:
 
 > After creating a local 6.3-RELEASE using the attached script, to avoid a "cannot find packages/INDEX" error during install, a symbolic 'packages -> ../packages' link must be added to 6.3-RELEASE/6.3-RELEASE.
 > 
 >> How-To-Repeat:
 > Attempt a 6.3-RELEASE install using custom FTP URL.
 >> Fix:
 > Add a packages->../packages symbolic link.
 
 This doesn't make much sense to me.  Why are you trying to install from 
 /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE/6.3-RELEASE not 
 /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE?
 
 Kris
 

From: Byron Young <bkyoung74q9@yahoo.com>
To: Kris Kennaway <kris@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/119949: 6.3-RELEASE install; cannot find packages/INDEX error
Date: Thu, 24 Jan 2008 14:03:29 -0800 (PST)

 On the install machine, use
 
 <ip address or
 fqdn>/pub/FreeBSD/releases/amd64/6.3-RELEASE
 
 as the custom ftp URL, leaving the OPTIONS setting to
 RELEASE: 6.3-RELEASE, user ftp, and password
 install@machine.whatever. This should map to 
 /var/ftp/pub/FreeBSD/releases/6.3-RELEASE on the local
 ftp server?
 
 The symbolic link is added to
 /var/ftp/pub/FreeBSD/releases/6.3-RELEASE/6.3-RELEASE
 
 A mirror of ftp.freebsd.org will set this correctly. A
 copy from CDROM/iso will not have the link.
 
 -Byron-
 --- Kris Kennaway <kris@FreeBSD.org> wrote:
 
 > Byron Young wrote:
 > 
 > > After creating a local 6.3-RELEASE using the
 > attached script, to avoid a "cannot find
 > packages/INDEX" error during install, a symbolic
 > 'packages -> ../packages' link must be added to
 > 6.3-RELEASE/6.3-RELEASE.
 > > 
 > >> How-To-Repeat:
 > > Attempt a 6.3-RELEASE install using custom FTP
 > URL.
 > >> Fix:
 > > Add a packages->../packages symbolic link.
 > 
 > This doesn't make much sense to me.  Why are you
 > trying to install from 
 >
 /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE/6.3-RELEASE
 > not 
 > /var/ftp/pub/FreeBSD/releases/amd64/6.3-RELEASE?
 > 
 > Kris
 > 
 > 
 
 
 
       ____________________________________________________________________________________
 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

From: Kris Kennaway <kris@FreeBSD.org>
To: Byron Young <bkyoung74q9@yahoo.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/119949: 6.3-RELEASE install; cannot find packages/INDEX
 error
Date: Thu, 24 Jan 2008 23:48:57 +0100

 Byron Young wrote:
 > On the install machine, use
 > 
 > <ip address or
 > fqdn>/pub/FreeBSD/releases/amd64/6.3-RELEASE
 > 
 > as the custom ftp URL, leaving the OPTIONS setting to
 > RELEASE: 6.3-RELEASE, user ftp, and password
 > install@machine.whatever. This should map to 
 > /var/ftp/pub/FreeBSD/releases/6.3-RELEASE on the local
 > ftp server?
 
 Evidently not:
 
 > 
 > The symbolic link is added to
 > /var/ftp/pub/FreeBSD/releases/6.3-RELEASE/6.3-RELEASE
 
 Just set it to /var/ftp/pub/FreeBSD/releases/ and let it append the 
 6.3-RELEASE/ to that?
 
 Kris
 
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Sat Mar 8 01:53:15 UTC 2008 
State-Changed-Why:  

Note that submitter has been asked for feedback. 

Byron: Please tell us, if the answer solves your problem so that we can close this ticket. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119949 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Thu Aug 28 17:28:26 UTC 2008 
State-Changed-Why:  
Feedback timeout (5 months), it looks like this was user error, but 
without feedback I can't confirm this.  To submitter: if you still 
feel this is a problem, let me know and I'll reopen the PR. 


Responsible-Changed-From-To: freebsd-amd64->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Thu Aug 28 17:28:26 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119949 
>Unformatted:
