[Bug 255639] [nanobsd] "missing directory in specification" while building disk image

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Nov 2023 16:04:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255639

--- Comment #5 from Jose Luis Duran <jlduran@gmail.com> ---
I had something similar in a non-upstreamed branch:

--- a/tools/tools/nanobsd/embedded/common
+++ b/tools/tools/nanobsd/embedded/common
@@ -411,6 +411,20 @@ fix_pkg ( ) (
 )
 customize_cmd fix_pkg

+fix_certctl ( ) (
+       chdir ${NANO_WORLDDIR}
+       mkdir -p etc/ssl/blacklisted
+       mkdir -p etc/ssl/certs
+       mkdir -p etc/ssl/untrusted
+       [ -z ${NANO_NOPRIV_BUILD} ] || (
+       echo "./etc/ssl type=dir uname=root gname=wheel mode=0755"
+       echo "./etc/ssl/blacklisted type=dir uname=root gname=wheel mode=0755"
+       echo "./etc/ssl/certs type=dir uname=root gname=wheel mode=0755"
+       echo "./etc/ssl/untrusted type=dir uname=root gname=wheel mode=0755"
+       ) >> ${NANO_METALOG}
+)
+customize_cmd fix_certctl
+
 save_build ( ) (
        VERSION_FILE=${NANO_WORLDDIR}/etc/version
        if [ "${SVNREVISION}" = "${REVISION}" ]; then

However, I think the real problem is that this information is missing from the
mtree (in /etc/mtree/BSD.root.dist).  I have switched to building images with
poudriere, but I may revisit this issue soon-ish, and confirm it.

-- 
You are receiving this mail because:
You are the assignee for the bug.