MFC r259426, r259427:
r259426: Add a pkg(8) repository configuration file for cdrom-based package installation. As part of the 'pkg-stage' target, copy the configuration file to the 'packages/repos/' directory on the DVD filesystem. r259427: 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. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2c4d831850
commit
4dddfdac35
@ -225,7 +225,11 @@ pkg-stage:
|
||||
.if !defined(NOPKG) && exists(${.CURDIR}/${TARGET}/pkg-stage.conf)
|
||||
sh ${.CURDIR}/scripts/pkg-stage.sh ${.CURDIR}/${TARGET}/pkg-stage.conf \
|
||||
${REVISION}
|
||||
mkdir -p ${.OBJDIR}/dvd/packages/repos/
|
||||
cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \
|
||||
${.OBJDIR}/dvd/packages/repos/
|
||||
.endif
|
||||
touch ${.TARGET}
|
||||
|
||||
cdrom: disc1.iso bootonly.iso
|
||||
dvdrom: dvd1.iso
|
||||
|
12
release/scripts/FreeBSD_install_cdrom.conf
Normal file
12
release/scripts/FreeBSD_install_cdrom.conf
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# The pkg(8) repository configuration file for the installation DVD.
|
||||
#
|
||||
|
||||
FreeBSD_install_cdrom: {
|
||||
url: "file:///dist/packages/${ABI}",
|
||||
mirror_type: "none",
|
||||
enabled: yes
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user