Subject: misc/55: bootblocks 'make install' should create the target directory
To: None <gnats-admin>
From: None <mckim@lerc.nasa.gov>
List: netbsd-bugs
Date: 12/30/1993 07:50:13
>Number: 55
>Category: misc
>Synopsis: bootblocks 'make install' should create the target directory
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Dec 30 07:50:05 1993
>Originator: Jim McKim
>Organization:
NASA Lewis Research Center
>Release: current
>Environment:
System: NetBSD mildred 0.9 MILDRED#4 i386
Machine: i386
>Description:
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.
This problem can also occur if $DESTDIR is set.
>Fix:
*** sys/arch/i386/boot/Makefile.orig Thu Dec 30 12:53:14 1993
--- sys/arch/i386/boot/Makefile Thu Dec 30 13:50:35 1993
***************
*** 63,72 ****
bootbios: boot
dd if=boot of=bootbios skip=1
! ${DESTDIR}/usr/mdec/bootsd: bootbios
cp bootbios ${DESTDIR}/usr/mdec/bootsd
! ${DESTDIR}/usr/mdec/sdboot: biosboot
cp biosboot ${DESTDIR}/usr/mdec/sdboot
${DESTDIR}/usr/mdec/bootwd: ${DESTDIR}/usr/mdec/bootsd
--- 63,75 ----
bootbios: boot
dd if=boot of=bootbios skip=1
! ${DESTDIR}/usr/mdec:
! install -d ${DESTDIR}/usr/mdec
!
! ${DESTDIR}/usr/mdec/bootsd: ${DESTDIR}/usr/mdec bootbios
cp bootbios ${DESTDIR}/usr/mdec/bootsd
! ${DESTDIR}/usr/mdec/sdboot: ${DESTDIR}/usr/mdec biosboot
cp biosboot ${DESTDIR}/usr/mdec/sdboot
${DESTDIR}/usr/mdec/bootwd: ${DESTDIR}/usr/mdec/bootsd
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------