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

From: Boris Samorodov <bsam_at_passap.ru>
Date: Thu, 06 Jun 2013 23:03:38 +0400
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
installkernel:
-----
[...]
===> 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
Received on Thu Jun 06 2013 - 17:03:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:38 UTC