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
|
esac
|
||||||
done
|
done
|
||||||
shift $(($OPTIND - 1))
|
shift $(($OPTIND - 1))
|
||||||
trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit
|
|
||||||
env_check
|
env_check
|
||||||
|
trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit
|
||||||
chroot_setup
|
chroot_setup
|
||||||
extra_chroot_setup
|
extra_chroot_setup
|
||||||
chroot_build_target
|
chroot_build_target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user