apk add --root fails
http://www.alpinelinux.org/wiki/Setting\_up\_a\_basic\_vserver\#Setting\_up\_the\_guest
mentions
apk add --initdb --root /tmp/tmpdir alpine-base
however that returns
ERROR: Missing packages:
alpine-base
turns out that apk tools from at least 1.10.1 onward need to have the keys and repository information in the root:
mkidr -p /tmp/tmpdir/etc
cp -a /etc/apk /tmp/tmpdir/etc
apk add --initdb --root /tmp/tmpdir alpine-base
I would have assumed the initdb would have copied the repository information to the tmp root, or something.
(from redmine: issue id 428, created on 2010-09-09, closed on 2010-09-13)