Hello, I'm trying to install NetBSD using syspkg on install media. But it is not going well. I did the followings as prepare syspkg testing: 1. Boot NetBSD 9.2 install media on virtual machine 2. Run /bin/sh 3. Mount the disk to /mnt 4. Create filesystem to the disk manually 5. Download all syspkgs to the disk from my build server then, run pkg_add to install base-sys-root package which contains root directory hierarchy but failed. I attached the full log. # pkg_add -p /mnt -K /mnt/var/db/syspkg base-sys-root-9.99.96.0.20220429.tgz pkg_add: Warning: package `base-sys-root-9.99.96.0.20220429' lacks pkg_install version data pkg_add: Warning: package `base-sys-root-9.99.96.0.20220429' was built for a platform: pkg_add: NetBSD/x86_64 9.99.96 (pkg) vs. NetBSD/x86_64 9.2 (this host) Executing 'install -d -o root -g wheel -m 0755 '/mnt'' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/altroot' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/bin' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/dev' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/dev/altq' ... pkg_add: PLIST entry and package don't match (dev/log vs .) pkg_add: Couldn't remove /mnt/dev/log: No such file or directory pkg_add: Couldn't remove /mnt/etc/mtree/set.base: No such file or directory pkg_add: Couldn't remove /mnt/var/db/obsolete/base: No such file or directory pkg_add: Couldn't remove /mnt/var/db/obsolete/modules: No such file or directory pkg_add: Directory `/mnt/var/spool' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/unbound/var' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/unbound/etc' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/unbound' disappeared, skipping ... pkg_add: Couldn't remove /mnt/.: Device busy pkg_add: 1 package addition failed My questions are: 1. Why pkg_add try to remove files and directories? I read pkg_add code but I couldn't understand. 2. The destination disk has no files and directories without pkg_dbdir. Any troubles in executing install(1) command? In addition, pkg_add version is 20201218. Thank you, -- Yuuki Enomoto <uki%e-yuuki.org@localhost> B684 4BF2 9CD4 961F 510A 8121 7B4D FF44 2348 20B8
# pkg_add -p /mnt -K /mnt/var/db/syspkg base-sys-root-9.99.96.0.20220429.tgz pkg_add: Warning: package `base-sys-root-9.99.96.0.20220429' lacks pkg_install version data pkg_add: Warning: package `base-sys-root-9.99.96.0.20220429' was built for a platform: pkg_add: NetBSD/x86_64 9.99.96 (pkg) vs. NetBSD/x86_64 9.2 (this host) Executing 'install -d -o root -g wheel -m 0755 '/mnt'' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/altroot' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/bin' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/dev' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/dev/altq' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/dev/fd' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/dev/pts' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/autofs' Executing 'install -d -o root -g wheel -m 0700 '/mnt'/etc/cgd' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/defaults' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/mtree' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/nsd' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/pam.d' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/rc.conf.d' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/rc.d' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/skel' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/ssh' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/etc/unbound' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/lib' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/lib/i386' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/lib/i386/npf' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/lib/npf' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/libdata' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/libexec' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/mnt' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/rescue' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/root' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/sbin' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/stand' Executing 'install -d -o root -g wheel -m 01777 '/mnt'/tmp' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/usr' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/usr/share/lua' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/usr/share/lua/5.3' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/account' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/backups' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot/ftp-proxy' Executing 'install -d -o _nsd -g _nsd -m 0755 '/mnt'/var/chroot/nsd' Executing 'install -d -o _nsd -g _nsd -m 0755 '/mnt'/var/chroot/nsd/etc' Executing 'install -d -o _nsd -g _nsd -m 0755 '/mnt'/var/chroot/nsd/etc/nsd' Executing 'install -d -o _nsd -g _nsd -m 0755 '/mnt'/var/chroot/nsd/var' Executing 'install -d -o _nsd -g _nsd -m 0755 '/mnt'/var/chroot/nsd/var/db' Executing 'install -d -o _nsd -g _nsd -m 0755 '/mnt'/var/chroot/nsd/var/db/nsd' Executing 'install -d -o _nsd -g _nsd -m 0775 '/mnt'/var/chroot/nsd/var/run' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot/pflogd' Executing 'install -d -o _rtadvd -g _rtadvd -m 0755 '/mnt'/var/chroot/rtadvd' Executing 'install -d -o _rtadvd -g _rtadvd -m 0755 '/mnt'/var/chroot/rtadvd/etc' Executing 'install -d -o _rtadvd -g _rtadvd -m 0755 '/mnt'/var/chroot/rtadvd/var' Executing 'install -d -o _rtadvd -g _rtadvd -m 0775 '/mnt'/var/chroot/rtadvd/var/run' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot/sshd' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot/tcpdump' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot/tftp-proxy' Executing 'install -d -o _unbound -g _unbound -m 0755 '/mnt'/var/chroot/unbound' Executing 'install -d -o _unbound -g _unbound -m 0755 '/mnt'/var/chroot/unbound/etc' Executing 'install -d -o _unbound -g _unbound -m 0755 '/mnt'/var/chroot/unbound/etc/unbound' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/chroot/unbound/var' Executing 'install -d -o _unbound -g _unbound -m 0775 '/mnt'/var/chroot/unbound/var/run' Executing 'install -d -o root -g wheel -m 0770 '/mnt'/var/crash' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/db' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/db/ns' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/db/obsolete' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/db/xdm' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/db/xkb' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/log' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/run' Executing 'install -d -o root -g wheel -m 01777 '/mnt'/var/shm' Executing 'install -d -o root -g wheel -m 0755 '/mnt'/var/spool' Executing 'install -d -o uucp -g daemon -m 0755 '/mnt'/var/spool/lock' Executing 'install -d -o root -g wheel -m 0777 '/mnt'/var/spool/sockets' Executing 'install -d -o root -g wheel -m 01777 '/mnt'/var/tmp' Executing 'install -d -o _tss -g _tss -m 0750 '/mnt'/var/tpm' pkg_add: PLIST entry and package don't match (dev/log vs .) pkg_add: Couldn't remove /mnt/dev/log: No such file or directory pkg_add: Couldn't remove /mnt/etc/mtree/set.base: No such file or directory pkg_add: Couldn't remove /mnt/var/db/obsolete/base: No such file or directory pkg_add: Couldn't remove /mnt/var/db/obsolete/modules: No such file or directory pkg_add: Directory `/mnt/var/spool' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/unbound/var' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/unbound/etc' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/unbound' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/rtadvd/var' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/rtadvd' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/nsd/var/db' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/nsd/var' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/nsd/etc' disappeared, skipping pkg_add: Directory `/mnt/var/chroot/nsd' disappeared, skipping pkg_add: Directory `/mnt/var/chroot' disappeared, skipping pkg_add: Directory `/mnt/usr/share/lua' disappeared, skipping pkg_add: Directory `/mnt/lib/i386' disappeared, skipping pkg_add: Directory `/mnt/lib' disappeared, skipping pkg_add: Directory `/mnt/etc' disappeared, skipping pkg_add: Directory `/mnt/dev' disappeared, skipping pkg_add: Couldn't remove /mnt/.: Device busy pkg_add: 1 package addition failed
Attachment:
signature.asc
Description: PGP signature