<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/release/release.sh, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F14</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F14'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-25T16:22:18Z</updated>
<entry>
<title>release.sh: document user-overriddable functions</title>
<updated>2026-04-25T16:22:18Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-03-22T02:45:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d6faa06d8936cf42accbf98860b9333710deda2c'/>
<id>urn:sha1:d6faa06d8936cf42accbf98860b9333710deda2c</id>
<content type='text'>
This helps others attempting to customize the behavior of `release.sh`.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55450 (as part of a larger change)

(cherry picked from commit b24fc79095c640620a643a11fa2f4f833326bfed)
</content>
</entry>
<entry>
<title>release.sh: add chroot cleanup routine</title>
<updated>2026-04-25T16:22:18Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-03-22T02:57:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=99b65c8b47724952a22186b7214523fadd012560'/>
<id>urn:sha1:99b65c8b47724952a22186b7214523fadd012560</id>
<content type='text'>
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)

(cherry picked from commit 60baee1fa4848ac969522e03d2c6f273f334edb7)
</content>
</entry>
<entry>
<title>release: build OCI images with shell scripts</title>
<updated>2025-03-04T09:46:03Z</updated>
<author>
<name>Doug Rabson</name>
<email>dfr@FreeBSD.org</email>
</author>
<published>2024-12-12T16:42:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f60149306ccf784ddaa517132a8be47bb523984d'/>
<id>urn:sha1:f60149306ccf784ddaa517132a8be47bb523984d</id>
<content type='text'>
This avoids the need for buildah and skopeo for building releases.

Reviewed by:		cpersiva
MFC after:		1 day
Differential Revision:	https://reviews.freebsd.org/D48574

(cherry picked from commit e8a5b9fd73f4f437a03c85e7644daa55652e224b)
</content>
</entry>
<entry>
<title>release: add optional OCI images</title>
<updated>2024-11-10T10:34:42Z</updated>
<author>
<name>Doug Rabson</name>
<email>dfr@FreeBSD.org</email>
</author>
<published>2024-08-14T15:39:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6686056ca3547c8280bd2423c59c661c2f501409'/>
<id>urn:sha1:6686056ca3547c8280bd2423c59c661c2f501409</id>
<content type='text'>
This adds three OCI archive format files to the release containing
FreeBSD base images suitable for static linked, dynamic linked and shell
workloads. The shell image also contains pkg-bootstrap and can be easily
extended by installing packages (including pkgbase packages).

Reviewed by: dch, cpersiva, jlduran, zlei
Differential Revision: https://reviews.freebsd.org/D46759
MFC after: 2 days

(cherry picked from commit d03c82c28da86e0812b98b051d24ae5980804ad7)
</content>
</entry>
<entry>
<title>release.sh: Pass ARCH_FLAGS when setting VMSIZE</title>
<updated>2024-07-09T17:50:14Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2024-07-06T17:15:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=410c50ae477a61d88422a72fd2b44b770627bd89'/>
<id>urn:sha1:410c50ae477a61d88422a72fd2b44b770627bd89</id>
<content type='text'>
[MFC note: This is not needed on stable/14 right now since the riscv64
images still fit within the default 5 GB size, but I want it in the
tree in case I need to bump VM sizes on a per-arch basis later.]

The default VM size may depend on the architecture.  In particular,
it is currently larged on riscv64 due to a toolchain issue which
results in bloated binaries.

MFC after:	3 days
Fixes:	59c21ed6e811 "release: Bump default VM size for riscv64 to 6 GB"
Sponsored by:	Amazon

(cherry picked from commit ed807f7bcaecbf32b0b81a7d18cee489a3666157)
</content>
</entry>
<entry>
<title>Reapply "release.sh: Add -jN to `make release`"</title>
<updated>2024-04-17T05:43:26Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2024-04-10T03:27:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=db34bbcedbf5b9fe7c015856cd04136923e1ce06'/>
<id>urn:sha1:db34bbcedbf5b9fe7c015856cd04136923e1ce06</id>
<content type='text'>
With the latest changes to release/Makefile, it is now possible to
run `make release -jN` without the build failing (at least in my
latest tests).

This reverts commit 7b707e797b2cd6265ba8f6215e59445e9efb9e97.

MFC after:	1 week

(cherry picked from commit 2c01e189ff190cf1618dedd01f196bca68298c44)
</content>
</entry>
<entry>
<title>release.sh: Don't install git if already present</title>
<updated>2024-04-02T20:44:03Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2024-03-29T07:10:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=794473e3101c5e7764be7eea13429a1daac7b3e7'/>
<id>urn:sha1:794473e3101c5e7764be7eea13429a1daac7b3e7</id>
<content type='text'>
Prior to this commit, we install git from ports if there is a ports
tree available and git is not installed, and we install git from pkg
otherwise -- including the case where git is already installed.

Rework the logic to not (re)install git at all if it is already
installed.

MFC after:	3 days

(cherry picked from commit 6baddb6b117664f51e2b1d2427fced946913a08f)
</content>
</entry>
<entry>
<title>release: fix ports checkout if /usr/ports does not exist</title>
<updated>2021-05-12T16:08:59Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2021-05-12T16:08:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0dbc49ab3f7e43a2972c932fcd2b2ed4d06448b'/>
<id>urn:sha1:c0dbc49ab3f7e43a2972c932fcd2b2ed4d06448b</id>
<content type='text'>
Reported by:	Yasuhiro Kimura
Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>release: remove logic to locate the svn{,lite} binary</title>
<updated>2021-05-12T14:32:03Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2021-05-12T14:32:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=69b6abb7b2bb2b07600b27660d864ddcd0b28cec'/>
<id>urn:sha1:69b6abb7b2bb2b07600b27660d864ddcd0b28cec</id>
<content type='text'>
Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>release: follow-up to previous commit to use Git for the ports tree</title>
<updated>2021-05-12T14:29:53Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2021-05-12T14:29:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb6e261c20ebcd94875d623e167369802721f2dd'/>
<id>urn:sha1:fb6e261c20ebcd94875d623e167369802721f2dd</id>
<content type='text'>
MFC after:	immediately (pending re approval)
Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
</entry>
</feed>
