Export 'REPOS_DIR' when the selected source medium for package

installation is cdrom.  This enables bsdconfig(8) to make use
of the on-disc pkg(8) repository configuration, which fixes
package selection and installation from the dvd installer.

MFC after:	3 days
M-MFC-With:	r259426
X-MFC-Before:	-RC3
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2013-12-15 20:47:27 +00:00
parent 0d0e89b794
commit 547c099adb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259427

View File

@ -119,6 +119,9 @@ f_index_initialize()
$DEVICE_TYPE_HTTP_PROXY)
f_getvar $VAR_HTTP_PROXY_PATH __site
__site="$__site/packages/$PKG_ABI" ;;
$DEVICE_TYPE_CDROM)
__site="file://$MOUNTPOINT/packages/$PKG_ABI"
export REPOS_DIR="$MOUNTPOINT/packages/repos" ;;
*) # UFS, DISK, CDROM, USB, DOS, NFS, etc.
__site="file://$MOUNTPOINT/packages/$PKG_ABI"
esac