Subject: Re: misc/55: bootblocks 'make install' should create the target directory
To: None <>
From: Kim Andersen <>
List: netbsd-bugs
Date: 12/30/1993 23:33:48
> The 'make install' step copies the boot block images to the target
> directory /usr/mdec. If the directory does not exist, the operation
> fails.
> >How-To-Repeat:
> I am building a version of NetBSD-current in an empty chrooted directory.
> This directory, which is normally created by the system
> installation disks, was not present (of course).
> The sequence of activities I followed went like this:
> Make an empty directory.
> Copy/move the /usr/src branch into it.
> Chroot into it.
> >From another session, copy enough essential executables to allow
> compilation and installation of the sources.
> At /usr/src/sys/arch/i386/boot, 'make install' fails.

Shouldn't it be made when going to src/etc and make-ing distrib-dirs ?
I guess this little directory is mostly overlooked. 

There isn't an entry for making /usr/mdec in this Makefile, but this seems to
be a sensible place to add it.

Note that doing:
    make distribution
with $DESTDIR set will fail when executing this line:
    (cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)

Anyone having ideas as how to get around this ?