Move the trap after env_check(), since CHROOTDIR may be
redefined. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
22529b5b29
commit
2b407e277c
@ -341,8 +341,8 @@ main() {
|
||||
esac
|
||||
done
|
||||
shift $(($OPTIND - 1))
|
||||
trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit
|
||||
env_check
|
||||
trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit
|
||||
chroot_setup
|
||||
extra_chroot_setup
|
||||
chroot_build_target
|
||||
|
Loading…
Reference in New Issue
Block a user