[new DESTDIR, DESTDIR/boot/modules]: kldxref: /diskless/boot/modules: Not a directory

Boris Samorodov bsam at passap.ru
Thu Jun 6 19:03:45 UTC 2013

Hi All,

The system is:
% uname -a
FreeBSD test.bsam.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251470: Thu
Jun  6 20:18:03 SAMT 2013
bsam at test.bsam.ru:/usr/obj/usr/src/sys/BB64X  amd64

I try to use (a new and empty) DESTDIR and get this error at
===> zlib (install)
install -o root -g wheel -m 555   zlib.ko /diskless/boot/modules
install -o root -g wheel -m 555   zlib.ko.symbols /diskless/boot/modules
kldxref /diskless/boot/modules
kldxref: /diskless/boot/modules: Not a directory
*** Error code 1

And indeed it's file but not a directory:
% file /diskless/boot/modules
/diskless/boot/modules: ELF 32-bit LSB shared object, Intel 80386,
version 1 (FreeBSD), dynamically linked, not stripped

If /diskless/boot/modules is manually created then installation
succeeds. Seems that this directory is not created and install
treat it as destination file.

WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve

More information about the freebsd-current mailing list