aboutsummaryrefslogtreecommitdiff
path: root/release/tools/vmimage.subr
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2017-04-19 21:18:06 +0000
committerGlen Barber <gjb@FreeBSD.org>2017-04-19 21:18:06 +0000
commitf56769dd008fa2d44a02274745c211f1c85d1f70 (patch)
tree0562ac142955ac26b196fda8ddf35dcff3a2ca1f /release/tools/vmimage.subr
parent609b7b269d7146662990e390ab542ed383be1ac5 (diff)
downloadsrc-f56769dd008fa2d44a02274745c211f1c85d1f70.tar.gz
src-f56769dd008fa2d44a02274745c211f1c85d1f70.zip
Trim trailing '/release/..' when setting _OBJDIR so arm64/aarch64
boot1.efifat is properly located when creating virtual machine images. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=317169
Diffstat (limited to 'release/tools/vmimage.subr')
-rw-r--r--release/tools/vmimage.subr1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 14ef7f106e30..6c3916e333e7 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -15,6 +15,7 @@ write_partition_layout() {
fi
_OBJDIR="$(make -C ${WORLDDIR} -V .OBJDIR)"
+ _OBJDIR="$(realpath ${_OBJDIR})"
if [ -d "${_OBJDIR%%/usr/src}/${TARGET}.${TARGET_ARCH}" ]; then
BOOTFILES="/${_OBJDIR%%/usr/src}/${TARGET}.${TARGET_ARCH}/usr/src/sys/boot"
else