Subject: port-i386/1380: copy_kernel.sh could be more paranoid on fsck
To: None <gnats-bugs@NetBSD.ORG>
From: None <abs@mono.mono.org>
List: netbsd-bugs
Date: 08/18/1995 15:03:45
>Number: 1380
>Category: port-i386
>Synopsis: copy_kernel.sh could be more paranoid on fsck
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Aug 18 10:20:06 1995
>Last-Modified:
>Originator: David Brownlee
>Organization:
Monochrome
>Release: Aug 14th 1995
>Environment:
sparc, 1.0A, current
System: NetBSD gluon.city.ac.uk 1.0A NetBSD 1.0A (GLUON) #1: monoadm@gluon.city.ac.uk:/mono/u1/NetBSD/src/sys/arch/sparc/compile/GLUON sparc
>Description:
The copy_kernel.sh runs fsck before copying the kernel from the
floppy to HD. I'd be inclined to run '-f', so it _always_ checks
the disk is ok no matter what the clean flag says.
>How-To-Repeat:
Install an i386 -current distribution and feel 'a little uneasy'
as it tells you the disk is clean :)
>Fix:
*** /usr/src/distrib/i386/floppies/kc-common/copy_kernel.sh.orig Tue Aug 15 19:28:12 1995
--- /usr/src/distrib/i386/floppies/kc-common/copy_kernel.sh Tue Aug 15 19:28:13 1995
***************
*** 68,74 ****
echo ""
echo "Checking ${diskpart} partition; please wait."
! ${TEST} fsck -p "/dev/${rawdiskpart}"
case $? in
0)
;;
--- 68,74 ----
echo ""
echo "Checking ${diskpart} partition; please wait."
! ${TEST} fsck -f -p "/dev/${rawdiskpart}"
case $? in
0)
;;
>Audit-Trail:
>Unformatted: