Bug 255639 - [nanobsd] "missing directory in specification" while building disk image
Summary: [nanobsd] "missing directory in specification" while building disk image
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 22:05 UTC by Paulo Roberto Candido dos Santos
Modified: 2021-05-06 08:52 UTC (History)
1 user (show)

See Also:


Attachments
Add missing files to metalog. (914 bytes, application/mbox)
2021-05-05 22:05 UTC, Paulo Roberto Candido dos Santos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.