Subject: Are default pkg_comp mount arguments right for allowing pkg_comp to
To: None <netbsd-help@netbsd.org>
From: Christopher W. Richardson <cwr@nexthop.com>
List: netbsd-help
Date: 03/29/2005 14:31:05
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to get pkg_comp working for the first time, and am
having some difficult.  Details of my pkg_comp conf file and the
actual failure were initially posted to netbsd-users (in the
archive at
http://mail-index.netbsd.org/netbsd-users/2005/03/28/0003.html,
or with Message-ID: <sxk4qevmqws.fsf@crichardson.nexthop.com>).

I _think_ everything there is correct, but pkg_comp makeroot
fails (ultimately with mkdir: /pkg_comp/packages/All: Read-only
file system, which is what is making me think that the mount
arguments might need to be changed, but I don't want to go doing
that if they're defaulting correctly and I have another problem).

Should I need to change those defaults before I expect makeroot
or auto targets to work?  If not, does anyone have any
suggestions on where to start looking into this problem?

Before the ultimate failure, pkg_admin fails a couple of times
with "pkg_admin: Cannot chdir to /var/db/pkg: No such file or
directory", and "Stored 0 files from 0 packages in
/var/db/pkg/pkgdb.byfile.db".  This also initially looked like a
mount permission error, but checking in the chrooted /var/db/pkg
after the ultimate failure shows that it's succeeded in doing
something:

cwr@achilles#ll /localhome2/chroot/pkg_comp/default/var/db/pkg/pkgdb.byfile.db 
- -rw-r--r--  1 root  wheel  110592 Mar 29 13:56 /localhome2/chroot/pkg_comp/default/var/db/pkg/pkgdb.byfile.db

Now I'm completely baffled.  I have no idea how it's giving the
above pkg_admin errors and yet this file is coming into
existence.  Does anyone have any suggestion on either what I
might be doing wrong, or where I can go from here to further
diagnose the problem?

Thanks,
Chris

PS, please CC me on any response, as I am not subscribed to the
help list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFCSaz3P65RBOOHTzERAhFUAKDi1IQ5JF34IPyenyggNUreZmssOgCgpXoX
bRADXHVDHc4Lotg+oI7dFeE=
=W2ac
-----END PGP SIGNATURE-----