When generating release images, the METALOG option of pkg(8) is used to list the contents of binary packages installed in the image created. The resulting output is provided to makefs(8) as part of the mtree specfile describing the files. However, spaces in filenames are not escaped and confuse the parser.
These changes introduce an awk(1) script, escaping the part of the METALOG file before the first tag (type=) is encountered, when used by
makefs(8).
Affects and fixes amd64, arm64, and i386; tested on FreeBSD/amd64.
Sponsored by: The FreeBSD Foundation