git: adc215de9cab - main - release: Add missing /var/crash ZFS dataset

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 02 Jan 2024 17:51:38 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=adc215de9cabadb89eb4a1c99e047906eacaa58a

commit adc215de9cabadb89eb4a1c99e047906eacaa58a
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2024-01-02 17:38:55 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-01-02 17:51:13 +0000

    release: Add missing /var/crash ZFS dataset
    
    This matches the layout from bsdinstall.
    
    MFC after:      1 week
    Fixes:  89585511cc05 ("release: Add support for creating ZFS-based VM images")
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/981
---
 release/tools/vmimage.subr | 1 +
 1 file changed, 1 insertion(+)

diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 6db8bea7c978..f6a0ace21564 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -197,6 +197,7 @@ buildfs() {
 			-o fs=zroot/usr/obj \
 			-o fs=zroot/var\;mountpoint=/var\;canmount=off \
 			-o fs=zroot/var/audit\;setuid=off\;exec=off \
+			-o fs=zroot/var/crash\;setuid=off\;exec=off \
 			-o fs=zroot/var/log\;setuid=off\;exec=off \
 			-o fs=zroot/var/mail\;atime=on \
 			-o fs=zroot/var/tmp\;setuid=off \