Subject: port-i386/3594: Failure when making inst/kc/upgr floppies doesn't unconfig vnd.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nimenees@par0163.urh.uiuc.edu>
List: netbsd-bugs
Date: 05/08/1997 20:14:06
>Number: 3594
>Category: port-i386
>Synopsis: Failure when making inst/kc/upgr floppies doesn't unconfig vnd.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 8 18:20:01 1997
>Last-Modified:
>Originator: Eric Haszlakiewicz
>Organization:
>Release: 1.2D
>Environment:
Pentium
System: NetBSD par0163.urh.uiuc.edu 1.2E NetBSD 1.2E (REALMS) #59: Thu May 8 13:39:27 CDT 1997 root@par0163.urh.uiuc.edu:/usr/src/sys/arch/i386/compile/REALMS i386
>Description:
The vnd device remains configured and mounted if the making of the
floppy fails.
>How-To-Repeat:
Get the make to fail once. Try making again and watch for the
errors.
>Fix:
Well, this probably isn't the best way, but it seems to work.
It would be nice if make would execute some magic target if
anything fails but I don't think it does. (.INTERRUPT seems to
not to affect individual command failures)
*** inst-common/Makefile.inc Thu May 8 19:33:18 1997
--- inst-common/Makefile.new Thu May 8 19:33:02 1997
*************** LISTS= ${COMMONDIR}/list ${.CURDIR}/lis
*** 16,22 ****
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREE= ${COMMONDIR}/mtree.conf
! all: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=10k count=144
vnconfig -v -c ${VND_DEV} ${IMAGE}
newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} floppy3
--- 16,27 ----
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREE= ${COMMONDIR}/mtree.conf
! all:
! @${MAKE} ${MAKEFLAGS} -k alls
!
! alls: all1 all2
!
! all1: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=10k count=144
vnconfig -v -c ${VND_DEV} ${IMAGE}
newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} floppy3
*************** all: ${CBIN}
*** 27,32 ****
--- 32,38 ----
@echo ""
@df -i ${MOUNT_POINT}
@echo ""
+ all2:
umount ${MOUNT_POINT}
vnconfig -u ${VND_DEV}
cat /*bin/* > /dev/null
And the kc-common one.
*** kc-common/Makefile.inc Tue May 6 19:46:17 1997
--- kc-common/Makefile.new Thu May 8 19:37:23 1997
*************** LISTS= ${COMMONDIR}/list ${.CURDIR}/lis
*** 16,22 ****
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREE= ${COMMONDIR}/mtree.conf
! all: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=10k count=144
vnconfig -v -c ${VND_DEV} ${IMAGE}
disklabel -w -B -b ${MDEC}/fdboot -s ${MDEC}/bootfd ${VND} floppy3
--- 16,27 ----
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREE= ${COMMONDIR}/mtree.conf
! all:
! @${MAKE} ${MAKEFLAGS} -k alls
!
! alls: all1 all2
!
! all1: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=10k count=144
vnconfig -v -c ${VND_DEV} ${IMAGE}
disklabel -w -B -b ${MDEC}/fdboot -s ${MDEC}/bootfd ${VND} floppy3
*************** all: ${CBIN}
*** 28,33 ****
--- 33,39 ----
@echo ""
@df -i ${MOUNT_POINT}
@echo ""
+ all2:
umount ${MOUNT_POINT}
vnconfig -u ${VND_DEV}
cat /*bin/* > /dev/null
>Audit-Trail:
>Unformatted: