aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-07 17:40:00 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-07 17:40:00 +0000
commitac1401b2c31b65cb660bf7df572d37f89d1c56cb (patch)
tree22dfd1d090c90245f6dbe4022aabd7553ed028c0 /release/release.sh
parent04b7fd007b0f7cb2bbea1cfda02078b498f15a5a (diff)
downloadsrc-ac1401b2c31b65cb660bf7df572d37f89d1c56cb.tar.gz
src-ac1401b2c31b65cb660bf7df572d37f89d1c56cb.zip
Fix paths.
Remove the temporary directory when done with it. Destroy the md(4) device when done with it. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282589
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh8
1 files 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()