release/Makefile:

Include .OBJDIR in DESTDIR in the vm-base target.

release/release.sh:
  Provide the full path to mddev.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
gjb 2014-09-28 20:06:02 +00:00
parent 2aaf766ec5
commit 73ba8a8869
2 changed files with 3 additions and 2 deletions

View File

@ -318,7 +318,8 @@ install:
vm-base:
.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
env IMAKE=${IMAKE} WORLDDIR=${WORLDDIR} \
VMBASE=${VMBASE}.img VMSIZE=${VMSIZE} DESTDIR=${.TARGET} \
VMBASE=${VMBASE}.img VMSIZE=${VMSIZE} \
DESTDIR=${.OBJDIR}/${.TARGET} \
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
${.CURDIR}/scripts/mk-vmimage.sh ${.TARGET}
.endif

View File

@ -64,7 +64,7 @@ vm_create_baseimage() {
truncate -s ${VMSIZE} ${VMBASE}
mddev=$(mdconfig -f ${VMBASE})
newfs -L root -j ${mddev}
mount ${mddev} ${DESTDIR}
mount /dev/${mddev} ${DESTDIR}
cd ${WORLDDIR} && \
${IMAKE} DESTDIR=${DESTDIR} \
installworld installkernel distribution || \