Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2023 16:04:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255639] [nanobsd] "missing directory in specification" while building disk image
Message-ID:  <bug-255639-227-ZRTDf3Nff3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255639-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255639-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255639

--- 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=3Ddir uname=3Droot gname=3Dwheel mode=3D0755"
+       echo "./etc/ssl/blacklisted type=3Ddir uname=3Droot gname=3Dwheel m=
ode=3D0755"
+       echo "./etc/ssl/certs type=3Ddir uname=3Droot gname=3Dwheel mode=3D=
0755"
+       echo "./etc/ssl/untrusted type=3Ddir uname=3Droot gname=3Dwheel mod=
e=3D0755"
+       ) >> ${NANO_METALOG}
+)
+customize_cmd fix_certctl
+
 save_build ( ) (
        VERSION_FILE=3D${NANO_WORLDDIR}/etc/version
        if [ "${SVNREVISION}" =3D "${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 wi=
th
poudriere, but I may revisit this issue soon-ish, and confirm it.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255639-227-ZRTDf3Nff3>