diff options
-rw-r--r-- | release/Makefile | 3 | ||||
-rwxr-xr-x | release/scripts/mk-vmimage.sh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile index ade92ff..7fdea85 100644 --- a/release/Makefile +++ b/release/Makefile @@ -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 diff --git a/release/scripts/mk-vmimage.sh b/release/scripts/mk-vmimage.sh index 884c5a5..d33b4c0 100755 --- a/release/scripts/mk-vmimage.sh +++ b/release/scripts/mk-vmimage.sh @@ -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 || \ |