aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/Makefile
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2026-03-22 02:57:25 +0000
committerEnji Cooper <ngie@FreeBSD.org>2026-03-22 03:02:09 +0000
commit60baee1fa4848ac969522e03d2c6f273f334edb7 (patch)
tree836943b4e155a44134239c1626c8088d1a2dc49d /share/man/man9/Makefile
parentb24fc79095c640620a643a11fa2f4f833326bfed (diff)
release.sh: add chroot cleanup routineHEADmain
The chroot_cleanup routine handles any cleanup needed post-chroot_setup, etc. This consists of purely tearing down `${CHROOTDIR}/dev` today, but might involve additional steps, as needed for custom functions. This allows end-users to override the various chroot functions without having to modify code in main() or replicate the unmount procedure in an equivalent routine setup via the trap builtin. This change modifies the /dev unmount process to use `umount -f` instead of `umount`. The latter can result in failures if resources are still mounted or are running post-build, whereas the former will clean up any resources still in use by processes running in the chroot at time of build. Moreover, the `chroot_cleanup` routine is now called when the script is killed with `SIGINT` and `SIGTERM`, as well as at `EXIT`, better ensuring that the script's resources are cleaned up in relatively common scenarios that can be detected/handled. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55450 (as part of a larger change)
Diffstat (limited to 'share/man/man9/Makefile')
0 files changed, 0 insertions, 0 deletions