From ac1401b2c31b65cb660bf7df572d37f89d1c56cb Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 7 May 2015 17:40:00 +0000 Subject: [PATCH] Fix paths. Remove the temporary directory when done with it. Destroy the md(4) device when done with it. Sponsored by: The FreeBSD Foundation --- release/release.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/release/release.sh b/release/release.sh index 2a226e8944be..4c40dcc523f2 100755 --- a/release/release.sh +++ b/release/release.sh @@ -333,13 +333,15 @@ chroot_arm_armv6_build_release() { WORLDDIR="$(eval chroot ${CHROOTDIR} make -C /usr/src/release -V WORLDDIR)" OBJDIR="$(eval chroot ${CHROOTDIR} make -C /usr/src/release -V .OBJDIR)" DESTDIR="${OBJDIR}/${KERNEL}" - IMGBASE="${OBJDIR}/${KERNEL}.img" - mkdir -p ${DESTDIR} + IMGBASE="${CHROOTDIR}/${OBJDIR}/${KERNEL}.img" + mkdir -p ${CHROOTDIR}/${DESTDIR} truncate -s ${IMAGE_SIZE} ${IMGBASE} - mddev=$(mdconfig -f ${IMGBASE} ${MD_ARGS}) + export mddev=$(mdconfig -f ${IMGBASE} ${MD_ARGS}) arm_create_disk arm_install_base arm_install_uboot + mdconfig -d -u ${mddev} + rmdir ${CHROOTDIR}/${DESTDIR} return 0 } # chroot_arm_armv6_build_release()