Use makefs(8) in release VM-image generation instead of md(4) and newfs.
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>
Thu, 25 Feb 2021 02:16:56 +0000 (21:16 -0500)
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>
Thu, 25 Feb 2021 02:16:56 +0000 (21:16 -0500)
commit1ca8842f3ad9725863c9affc044d1974a51818a9
tree412e7a9db1f57cc883ad098da5d252f36fe396b9
parentef567155d35fd8f783d9b907e9a2765640a11527
Use makefs(8) in release VM-image generation instead of md(4) and newfs.

Using makefs instead reduces the privileges needed to build VM images,
simplifies the script (no need to copy files to a fresh image at the end),
and improves portability by allowing generation of cross-endian images.
As a result of the last, this patch also adds support for generation of
powerpc64 and powerpc64le VM images.

No other changes to the output. Tested and working for both amd64 and
powerpc64 targets.

Reviewed by: gjb
Differential Revision: https://reviews.freebsd.org/D28912
release/scripts/mk-vmimage.sh
release/tools/vmimage.subr