Subject: install/8384: Unable to rewrite disk partition map in sysinst/mac68k
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rnestor@augustmail.com>
List: netbsd-bugs
Date: 09/12/1999 08:21:17
>Number:         8384
>Category:       install
>Synopsis:       Unable to rewrite disk partition map in sysinst/mac68k
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 12 08:20:02 1999
>Last-Modified:
>Originator:     Bob Nestor
>Organization:
>Release:        NetBSD-1.4.1
>Environment:
NetBSD pluto 1.4.1 NetBSD 1.4.1 (GENERICSBC) #0: Wed Aug 11 07:03:00 CDT 1999     fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/GENERICSBC mac68k

>Description:
The device name used to open the raw disk for re-writing the Apple Disk
Partition Map is missing the leading "/", therefore the open fails with
an unknown device error.
>How-To-Repeat:
Build and run sysinst/mac68k attempting to modify the disk partition
layout.

>Fix:
Apply the following patch to the file
   src/distrib/utils/sysinst/arch/mac68k/md.c

--- md.c.orig	Sun Sep 12 09:56:41 1999
+++ md.c	Sun Sep 12 09:57:14 1999
@@ -639,7 +639,7 @@
      */
     printf ("%s", msg_string (MSG_dodiskmap));
 
-    snprintf (devname, sizeof(devname), "dev/r%sc", diskdev);
+    snprintf (devname, sizeof(devname), "/dev/r%sc", diskdev);
 
     /*
      * Open the disk as a raw device

>Audit-Trail:
>Unformatted: