Bug 255639

Summary: [nanobsd] "missing directory in specification" while building disk image
Product: Base System Reporter: Paulo Roberto Candido dos Santos <ulzeraj>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: imp
Priority: ---    
Version: 13.0-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
Add missing files to metalog. none

Description Paulo Roberto Candido dos Santos 2021-05-05 22:05:13 UTC
Created attachment 224711 [details]
Add missing files to metalog.

Hello.

I've been trying to build a NanoBSD image using releng/13.0 and the process fails during the image creation step complaining about directories that are not included in the metalog. 

I'm using the provided tools/tools/nanobsd/embedded/qemu-amd64-uefi.cfg without any  modification.

Here is the relevant bit of the /usr/embedded/qemu-amd64-uefi/_.di log:

+ eval 'makefs -t ffs -B little' -F /usr/embedded/obj/_.metalog /usr/embedded/qemu-amd64-uefi/_.s3 /usr/embedded/qemu-amd64-uefi/_.w
+ makefs -t ffs -B little -F /usr/embedded/obj/_.metalog /usr/embedded/qemu-amd64-uefi/_.s3 /usr/embedded/qemu-amd64-uefi/_.w
makefs: ./etc/ssl/blacklisted: missing directory in specification

Apparently these directories are not added to /usr/embedded/obj/_.metalog during the nanobsd.sh process.

I was able to complete these step by adding ./etc/ssl/blacklisted and ./etc/ssl/certs into the fix_pkg function in tools/tools/nanobsd/embedded/common.