Subject: port-i386/3425: installing from floppy should not require writable floppies
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: netbsd-bugs
Date: 03/31/1997 17:39:40
>Number:         3425
>Category:       port-i386
>Synopsis:       installing from floppy should not require writable floppies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 31 15:05:02 1997
>Last-Modified:
>Originator:     Michael Richardson
>Organization:
	Sandelman Software Works
>Release:        1.2
>Environment:
System: NetBSD lox.sandelman.ottawa.on.ca 1.2B NetBSD 1.2B (LOX) #9: Thu Jan 23 17:33:21 EST 1997 root@:/sandel/netbsd/src/sys/arch/i386/compile/LOX i386
Architecture: netbsd.i386

>Description:
	Installing a new system from floppies using Load_fd causes
	the floppies to be written (if not write protected). This is
	due to "access" times being updated. 
	There is no reason for the DOS floppies to be writable.
		
>How-To-Repeat:
	Do an install from floppy with the write protect tab set. You
	get write_protect errors. 
>Fix:
	Tell mount not to mount the floppy read/write.

*** src/distrib/i386/floppies/inst-common/dot.commonutils.orig	Mon Mar 31 17:47:00 1997
--- src/distrib/i386/floppies/inst-common/dot.commonutils	Mon Mar 31 17:47:06 1997
***************
*** 93,99 ****
  	    "Insert floppy (hit Control-C to terminate, enter to load): "
  	do
  		read foo
! 		mount -t msdos /dev/fd${which}a /mnt2
  		cp -rp /mnt2/* .
  		umount /mnt2
  	done
--- 93,99 ----
  	    "Insert floppy (hit Control-C to terminate, enter to load): "
  	do
  		read foo
! 		mount -r -t msdos /dev/fd${which}a /mnt2
  		cp -rp /mnt2/* .
  		umount /mnt2
  	done
>Audit-Trail:
>Unformatted: