Subject: port-i386/4456: make in distrib/i386/floppies should not be so fragile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sjg@telstra.com.au>
List: netbsd-bugs
Date: 11/10/1997 13:43:04
>Number: 4456
>Category: port-i386
>Synopsis: make in distrib/i386/floppies can fail if tried again after error.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 9 18:50:03 1997
>Last-Modified:
>Originator: Simon J. Gerraty
>Organization:
>Release: NetBSD 1.3_ALPHA 97-11-09
>Environment:
System: NetBSD bilbo 1.3_ALPHA NetBSD 1.3_ALPHA (BILBO) #0: Fri Nov 7 14:29:26 EST 1997 root@bilbo:/usr/local/NetBSD/current/src/sys/arch/i386/compile/BILBO i386
>Description:
If make fails in distrib/i386/floppies, the system can be left with
vnd0 in use (mounted on /mnt). Subsequent make(1)s will fail as a result.
>How-To-Repeat:
>Fix:
The patch below, umounts /mnt and unconfigures vnd0 before
attempting to use it.
*** distrib/i386/floppies/ramdisk/Makefile.old Wed Jul 30 21:25:09 1997
--- distrib/i386/floppies/ramdisk/Makefile Mon Nov 10 13:34:48 1997
***************
*** 36,41 ****
--- 36,43 ----
sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
all: ${AUXTARGETS} ${CBIN}
+ -umount ${MOUNT_POINT}
+ -vnconfig -u ${VND_CDEV}
dd if=/dev/zero of=${IMAGE} count=2880
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
disklabel -rw ${VND_CDEV} ${DISKTYPE}
*** distrib/i386/floppies/bootfloppy-common/Makefile.inc.old Thu Nov 6 23:32:53 1997
--- distrib/i386/floppies/bootfloppy-common/Makefile.inc Mon Nov 10 13:35:33 1997
***************
*** 32,37 ****
--- 32,39 ----
CLEANFILES+= netbsd.ram.gz
all: netbsd.ram.gz
+ -umount ${MOUNT_POINT}
+ -vnconfig -u ${VND_CDEV}
dd if=/dev/zero of=${IMAGE} count=${DISKSIZE}
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
disklabel -rw ${VND_CDEV} ${DISKTYPE}
>Audit-Trail:
>Unformatted: