NetBSD Problem Report #29049

From www@netbsd.org  Sun Jan 23 11:02:00 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id EBE7963B843; Sun, 23 Jan 2005 11:01:59 +0000 (UTC)
Message-Id: <20050123110159.EBE7963B843@narn.netbsd.org>
Date: Sun, 23 Jan 2005 11:01:59 +0000 (UTC)
From: edoneel@sdf.lonestar.org
Reply-To: edoneel@sdf.lonestar.org
To: gnats-bugs@netbsd.org
Subject: mac68k sysinst for 2.0 doesn't work for the install case.  It works for the upgrade case
X-Send-Pr-Version: www-1.0

>Number:         29049
>Category:       port-mac68k
>Synopsis:       mac68k sysinst for 2.0 doesn't work for the install case.  It works for the upgrade case
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    hauke
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 11:02:00 +0000 2005
>Closed-Date:    Thu Aug 23 19:11:27 +0000 2007
>Last-Modified:  Thu Aug 23 19:11:27 +0000 2007
>Originator:     Bruce ONeel
>Release:        2.0
>Organization:
None what so ever
>Environment:
NetBSD 2.0 (GENERICSBC) mac68k
>Description:
The sysinst install for Mac68k doesn't do a few necessary steps.

- After one has chosen to partition the disk one is asked, shall we continue,
nothing has been written yet.  If you say yes then very very quickly you end up
on the extract verbosity question.  What seems to happen (these systems are too
fast, the screen flashes the messages too fast) is that the disklabel command
is done, but, the newfs is not.  Newfs on my 040 takes a good 30 seconds.
Since the newfs wasn't done then the new root system is not mounted at
/targetroot and the extract of sets is just about to fail.

If at the extract verbosity menu one types ^Z and types

newfs /dev/sd0a 

mount /dev/sd0a /targetroot

and then fg to get back into sysinst then one can continue with
the untarring of the sets.

Sadly all isn't completely well.

- on reboot things go badly because /etc/fstab wasn't written.
  One must manually create it.

If you already have say 1.6.2 on the system then the upgrade step works fine.
>How-To-Repeat:
Boot the install kernel for mac68k and try the install path and not
the upgrade path.
>Fix:
See above.  My *guess* is that newfs isn't running for some bizzare reasons.

>Release-Note:

>Audit-Trail:

From: georg.schwarz@freenet.de (Georg Schwarz)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-mac68k/29049
Date: Tue, 20 Sep 2005 19:45:55 +0200

 This bug is still present in 2.0.2.
 The fstab file in fact is created, but it is created in the RAM disk in
 /targetroot/etc, since the target root is not being mounted.
 So one can do the following (I hit ^z when I came to the question of the
 installation method):

 doing the newfs stuff as necessary

 cd /targetroot
 tar cvf /tmp/t.tar .
 cd /tmp
 mount /dev/sd0a /targetroot
 cd /targerooot
 tar xpvf /tmp/t.tar
 fg


 BTW, I do not think the issue is simply that newfs is not executed. The
 partition is not mounted even if I prepare it beforehand.

 -- 
 Georg Schwarz    http://home.pages.de/~schwarz/
  georg.schwarz@freenet.de     +49 178 8545053

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29049 CVS commit: [netbsd-3] src/distrib/notes/mac68k
Date: Thu, 15 Dec 2005 20:31:53 +0000 (UTC)

 Module Name:	src
 Committed By:	tron
 Date:		Thu Dec 15 20:31:53 UTC 2005

 Modified Files:
 	src/distrib/notes/mac68k [netbsd-3]: prep

 Log Message:
 Pull up following revision(s) (requested by hubertf in ticket #1058):
 	distrib/notes/mac68k/prep: revision 1.14
 Add text for workaround of sysinst not running newfs etc.  as described
 in PR mac68k/29049. Text for the workaround mostly provided by Hauke Fath.


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.13.6.1 src/distrib/notes/mac68k/prep

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hubert Feyrer <hubertf@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29049 CVS commit: src/distrib/notes/mac68k
Date: Thu, 15 Dec 2005 02:29:59 +0000 (UTC)

 Module Name:	src
 Committed By:	hubertf
 Date:		Thu Dec 15 02:29:59 UTC 2005

 Modified Files:
 	src/distrib/notes/mac68k: prep

 Log Message:
 Add text for workaround of sysinst not running newfs etc.  as described
 in PR mac68k/29049. Text for the workaround mostly provided by Hauke Fath.


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.14 src/distrib/notes/mac68k/prep

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29049 CVS commit: [netbsd-2] src/distrib/notes/mac68k
Date: Fri, 16 Dec 2005 18:48:48 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Fri Dec 16 18:48:48 UTC 2005

 Modified Files:
 	src/distrib/notes/mac68k [netbsd-2]: prep

 Log Message:
 Pullup rev 1.14 (requested by hubertf in ticket #10198)

 	Add text for workaround of sysinst not running newfs etc. PR#29049


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.13.4.1 src/distrib/notes/mac68k/prep

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29049 CVS commit: [netbsd-2-0] src/distrib/notes/mac68k
Date: Fri, 16 Dec 2005 18:49:27 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Fri Dec 16 18:49:27 UTC 2005

 Modified Files:
 	src/distrib/notes/mac68k [netbsd-2-0]: prep

 Log Message:
 Pullup rev 1.14 (requested by hubertf in ticket #10198)

 	Add text for workaround of sysinst not running newfs etc. PR#29049


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.13.2.1 src/distrib/notes/mac68k/prep

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29049 CVS commit: [netbsd-2-1] src/distrib/notes/mac68k
Date: Fri, 16 Dec 2005 18:49:47 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Fri Dec 16 18:49:47 UTC 2005

 Modified Files:
 	src/distrib/notes/mac68k [netbsd-2-1]: prep

 Log Message:
 Pullup rev 1.14 (requested by hubertf in ticket #10198)

 	Add text for workaround of sysinst not running newfs etc. PR#29049


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.13.8.1 src/distrib/notes/mac68k/prep

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@netbsd.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>,
	install-manager@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: port-mac68k/29049 (mac68k sysinst doesn't work for the
 install case)
Date: Wed, 11 Oct 2006 23:03:01 +0200

 The following patch

 Index: md.c
 ===================================================================
 RCS file: /cvsroot/src/distrib/utils/sysinst/arch/mac68k/md.c,v
 retrieving revision 1.48
 diff -u -r1.48 md.c
 --- md.c	4 Aug 2006 05:30:13 -0000	1.48
 +++ md.c	11 Oct 2006 19:52:49 -0000
 @@ -1030,6 +1030,7 @@
   		    case UFS_PART:
   			bsdlabel[pl].pi_fstype = FS_BSDFFS;
   			strcpy (bsdlabel[pl].pi_mount, (char 
 *)bzb->mount_point);
 +			bsdlabel[pl].pi_flags |= PIF_NEWFS | PIF_MOUNT;
   			break;
   		    case SWAP_PART:
   			bsdlabel[pl].pi_fstype = FS_SWAP;


 fixes the mac68k sysinst for me. Basically, the mac68k 
 md_make_bsd_partitions() function, which replaces the MI 
 make_bsd_partitions() because the mac68k port does not have an 
 on-disk BSD disklabel, neglected to sign up BSD partitions for 
 newfs'ing and mounting by setting the appropriate flags.


 Please request pull-ups to the netbsd-4, netbsd-3, netbsd-3-1 
 (urgent!), netbsd-2 and netbsd-2-1 branches, and also back out the 
 workaround descriptions in

 [current]
 cvs rdiff -r1.13 -r1.14 src/distrib/notes/mac68k/prep

 [netbsd-3]
 cvs rdiff -r1.13 -r1.13.6.1 src/distrib/notes/mac68k/prep

 [netbsd-2]
 cvs rdiff -r1.13 -r1.13.4.1 src/distrib/notes/mac68k/prep

 [netbsd-2-1]
 cvs rdiff -r1.13 -r1.13.8.1 src/distrib/notes/mac68k/prep
 -- 
 "It's never straight up and down"     (DEVO)

From: Geert Hendrickx <ghen@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-mac68k/29049 [pullup-3 #1548] fix for mac68k sysinst (for 3.1)
Date: Mon, 16 Oct 2006 23:09:31 +0200

 --sdtB3X0nJg68CQEu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Thu, Oct 12, 2006 at 01:07:13PM +0000, Pavel Cahyna wrote:
 > Hello,
 >
 > please pullup this to netbsd-3-0 and netbsd-3 before the 3.1 release.
 >
 > The first change just undoes the last pullup to distrib/notes/mac68k/prep.
 > The second causes a conflict, a patch is attached.

 Pulled up into the netbsd-3-0 and netbsd-3 branches:

 distrib/notes/mac68k/prep			1.15
 distrib/utils/sysinst/arch/mac68k/md.c		1.49

 	Fix sysinst on mac68k: make it newfs and mount the target filesystem.
 	[pavel, ticket #1548]

 Thanks for the fix,

 	Geert

 --sdtB3X0nJg68CQEu
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.5 (NetBSD)

 iQEVAwUBRTP1C4LS9urEu56fAQL1HAf9HSWCm6RuGl3j7LwkOUOswUby0pBys5b0
 QZAw4TDFGdWOu1tzgs+/tyADQNuAlRL98JYneo7scT6MW1guKeUOO2a97auITm4h
 57czwejdoW1uXiUQxJN+1QCS55TzkYHveYGnjMxDRCcLiiZay+g1OxdnwY2O1coF
 JY78ZRbiW9eg0WNVSFy3HJPFNLGgGPu/sJhi1fQZpbcXk0NJnOU1UzGz2/bFdR54
 GPtKNqf33pUVaiGR1TVlNBLLtjXISYusEBEsfsgmXyt9x++CCmI6nfqCOkBHE4no
 oK4FG55cEtzxC+0RtIoN+VxX9uUoM8c89I81jbTOW+GCXAxIOKxHtA==
 =Ezz7
 -----END PGP SIGNATURE-----

 --sdtB3X0nJg68CQEu--

Responsible-Changed-From-To: port-mac68k-maintainer->hauke@NetBSD.ORG
Responsible-Changed-By: hauke@netbsd.org
Responsible-Changed-When: Sun, 10 Jun 2007 20:33:28 +0000
Responsible-Changed-Why:
I'll take that one, since I provided the one-line fix.


State-Changed-From-To: open->analyzed
State-Changed-By: hauke@netbsd.org
State-Changed-When: Sun, 10 Jun 2007 20:37:07 +0000
State-Changed-Why:
Fix was provided and applied to current at the time and netbsd-3, but not to the older release branches. Since the PR was originally filed against netbsd-2, I'lI send a pullup request.


Responsible-Changed-From-To: hauke@NetBSD.ORG->hauke
Responsible-Changed-By: fair@netbsd.org
Responsible-Changed-When: Mon, 16 Jul 2007 17:46:11 +0000
Responsible-Changed-Why:

No "@" or hostname in "responsible" field.



State-Changed-From-To: analyzed->closed
State-Changed-By: hauke@netbsd.org
State-Changed-When: Thu, 23 Aug 2007 19:11:27 +0000
State-Changed-Why:
Manuel Bouyer pulled up the fix to netbsd-2 with ticket #11332
-- all's well as ends well...


>Unformatted:


 XXX
 Documentation for a workaround was added for NetBSD 3.0 to 
 src/distrib/notes/mac68k/prep (rev. 1.14), they should be removed
 when this bug is fixed properly! For the full commit message, see
 http://mail-index.netbsd.org/source-changes/2005/12/15/0004.html
   - hubertf, Thu Dec 15 03:43:31 CET 2005

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.