Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2017 09:13:33 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-pkg@freebsd.org
Subject:   Re: Error bootstrapping on a NanoBSD build
Message-ID:  <b8eaed33-d61f-1943-9fb4-6f3c1fc3cc89@denninger.net>
In-Reply-To: <5b31402a-8d2b-0433-3596-c78b82f1168e@denninger.net>
References:  <5b31402a-8d2b-0433-3596-c78b82f1168e@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 6/14/2017 22:55, Karl Denninger wrote:
> I'm attempting to bring up pkg packages on a NanoBSD build for one of
> the PCEngines devices, and running into something I've not seen before.
>
> The image builds perfectly well (FreeBSD-11) and runs, but if I try to
> use the cust_pkgng customize command it fails with a complaint thus:
>
> + touch /pics/Crochet-work-AMD/obj/_.w/usr/local/etc/pkg.conf
> + grep -Eiq '^PKG_DBDIR:.*'
> /pics/Crochet-work-AMD/obj/_.w/usr/local/etc/pkg.conf
> + echo 'PKG_DBDIR: "/var/db/pkg"'
> + [ ! -d /usr/src/tools/tools/nanobsd/Pkg ]
> + find -s /usr/src/tools/tools/nanobsd/Pkg -iname 'pkg-*'
> + basename /usr/src/tools/tools/nanobsd/Pkg/pkg-1.10.1.txz
> + _NANO_PKG_PACKAGE=pkg-1.10.1.txz
> + [ -z pkg-1.10.1.txz -o ! -f
> /usr/src/tools/tools/nanobsd/Pkg/pkg-1.10.1.txz ]
> + NANO_PACKAGE_LIST='pkg-1.10.1.txz *'
> + mkdir -p /pics/Crochet-work-AMD/obj/_.w/_.p
> + mount -t nullfs -o noatime -o ro /usr/src/tools/tools/nanobsd/Pkg
> /pics/Crochet-work-AMD/obj/_.w/_.p
> + trap 'umount /pics/Crochet-work-AMD/obj/_.w/_.p ; rm -rf
> /pics/Crochet-work-AMD/obj/_.w/_.p' 1 2 15 EXIT
> + echo 'pkg-1.10.1.txz *'
> + awk '{ print NF }'
> + todo=2
> + echo '=== TODO: 2'
> === TODO: 2
> + echo 'pkg-1.10.1.txz *'
> pkg-1.10.1.txz *
> + echo '==='
> ===
> + CR 'env ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg
> SIGNATURE_TYPE=none /usr/sbin/pkg add /_.p/pkg-1.10.1.txz'
> + chroot /pics/Crochet-work-AMD/obj/_.w /bin/sh -exc 'env
> ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg SIGNATURE_TYPE=none
> /usr/sbin/pkg add /_.p/pkg-1.10.1.txz'
> + env 'ASSUME_ALWAYS_YES=YES' 'PKG_DBDIR=/var/db/pkg'
> 'SIGNATURE_TYPE=none' /usr/sbin/pkg add /_.p/pkg-1.10.1.txz
> Installing pkg-1.10.1...
> Extracting pkg-1.10.1: .......... done
> + CR 'env ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg
> SIGNATURE_TYPE=none /usr/sbin/pkg add /_.p/Files'
> + chroot /pics/Crochet-work-AMD/obj/_.w /bin/sh -exc 'env
> ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg SIGNATURE_TYPE=none
> /usr/sbin/pkg add /_.p/Files'
> + env 'ASSUME_ALWAYS_YES=YES' 'PKG_DBDIR=/var/db/pkg'
> 'SIGNATURE_TYPE=none' /usr/sbin/pkg add /_.p/Files
> pkg: /_.p/Files: No such file or directory
> pkg: Was 'pkg install /_.p/Files' meant?
>
> Failed to install the following 1 package(s): /_.p/Files
> + umount /pics/Crochet-work-AMD/obj/_.w/_.p
> + rm -rf /pics/Crochet-work-AMD/obj/_.w/_.p
> + echo 'NANO RM -rf /pics/Crochet-work-AMD/obj/_.w/_.p'
> NANO RM -rf /pics/Crochet-work-AMD/obj/_.w/_.p
> + uname -r
> + command rm -x -rf /pics/Crochet-work-AMD/obj/_.w/_.p
>
> OK, so I gave up on having the packages I wanted loaded as part of the
> image I built, mounted the root directory writeable, and tried to
> bootstrap it normally:
>
> root@:~ # pkg bootstrap
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]: y
> Bootstrapping pkg from
> pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest, please wait...
> pkg: Error loading revoked certificates
> root@:~ #
>
> I can't find a reason for this to fail, but it certainly does.... and
> there's nothing in the docs telling me WHY it's failing.
>
> Where is whatever it is looking for and not finding supported to be, and
> why would it be missing if I'm bootstrapping from zero?
>
This is related to what appears to be a bug in the Nanobsd script and
there's a PR and patch out for it.  Applying same fixed the "included"
problem.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219405

-- 
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

[-- Attachment #2 --]
0	*H
010
	`He0	*H
\0X0@=0
	*H
010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA0
161218194535Z
211217194535Z0W10	UUS10UFlorida10U
Cuda Systems LLC10Ukarl@denninger.net0"0
	*H
0
͍fd`1ie6";fSz`5¹/?{=Ӵowjħ_fnӴMG\ҢҖ4ib}>@mJo&mM;
Q9U cj]p퐆W.2E=
^¢tzĄ'5i7_`~#dY
`]R]N%R}EXzqV@[oN	T>5AwYˡA"\v&YG]+($p:M,T?=mJkMљg*ym
L!J[./d׷?W^LysD'1
+V'~{-SSX=q-f=%&V<m4BeSet|
l2m 6iO{wv
+aHXˈ5=~é*C!?uJr3tb'3`Oe)üLxt&3N526llU
.|Cp[l?007++0)0'+0http://cudasystems.net:88880	U00	`HB0U0,	`HB
OpenSSL Generated Certificate0U/Zi
0GhG0U#0$q}ݽʒm50U0karl@denninger.net0
	*H
b%X%gwq	
ɁэrK[DMJ35W6
sz8d|qB2Cyw2PbV}
â[!W{HD7oD.TZ'w6~g( -,]R8P{*[f<1=7jGj9铚~3f2AʺN	k~@vz^j(>ͺyh2y{/9}4.45#S|<fW!.,Bss*Q+h=}l@	"q "M&6J5*,G {hɫjbNgǠ.ЃXȶ4$O.5evHlZba!4eE!x|Za1򹿈nZ5TuPvW|#G+	DZpI7S'n0 haGa@vZ	e|]Cu+))vRyY100010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA=0
	`HeM0	*H
	1	*H
0	*H
	1
170615141333Z0O	*H
	1B@#Uu<8‡@U8}bΞv	7?4RW]*"N*x!}_0l	*H
	1_0]0	`He*0	`He0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA=0*H
	1010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA=0
	*H
b=D.
UgF<^)
%N|NjR/N2;4 FQ!Pdoj(;\ (% EOj~W^c*Yvvo\nQL eN?Z*~8=/Eפv65UU-	6K	D4JŮ=l)g܂R~2?qy)4NW]UrC<Ov?K_Sr^Ѯٯz6//&x1
yxݷ#/Ns1z?8	CvTЩ2yCbm2(|&6XS|"j8gOJRF+/BU?R.3X.!Rn$w,;ui\RQzmpʜcETqÓ%积`%[TI<R7Uo

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b8eaed33-d61f-1943-9fb4-6f3c1fc3cc89>