NetBSD Problem Report #51160
From www@NetBSD.org Sun May 22 19:12:08 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4828E7A3DB
for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 May 2016 19:12:08 +0000 (UTC)
Message-Id: <20160522191206.D94607AA99@mollari.NetBSD.org>
Date: Sun, 22 May 2016 19:12:06 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: fstab created during install references wd(4), kernel expect to mount dk(4)
X-Send-Pr-Version: www-1.0
>Number: 51160
>Category: port-macppc
>Synopsis: fstab created during install references wd(4), kernel expect to mount dk(4)
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: port-macppc-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 22 19:15:00 +0000 2016
>Closed-Date: Sat May 28 22:31:52 +0000 2016
>Last-Modified: Sat May 28 22:31:52 +0000 2016
>Originator: Sevan Janiyan
>Release: HEAD
>Organization:
>Environment:
NetBSD 7.99.29 (GENERIC.201605220630Z) macppc
>Description:
I decided to try -current & installed a snapshot from scratch.
Turns out in -current we've switched to using dk(4) in the regular kernel (not the install kernel), this results in a system which fails to go multiuser due to fstab created during install referencing wd(4) device.
At the single user prompt it's not possible to force a mount of the relevant device as root_device.
Editing the fstab to reference dk1 / dk2 instead of wd0a and wd0b for root and swap allows the system to boot as normal
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-macppc/51160: fstab created during install references wd(4), kernel expect to mount dk(4)
Date: Sun, 22 May 2016 22:52:33 +0200
On Sun, May 22, 2016 at 07:15:00PM +0000, venture37@geeklan.co.uk wrote:
> Turns out in -current we've switched to using dk(4) in the regular
> kernel
I don't think we did that, there must be something special going on.
At least a week ago my macppc kernel booted without wedge autodiscovery.
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/51160: fstab created during install references wd(4),
kernel expect to mount dk(4)
Date: Sun, 22 May 2016 22:21:34 +0100
On 22/05/2016 21:55, Martin Husemann wrote:
> I don't think we did that, there must be something special going on.
> At least a week ago my macppc kernel booted without wedge autodiscovery.
Do you have any directions which I could shine the torch?
I was running 7.0 release previously the system and there was no such
issue. I've tried several -current snapshots since which have exhibited
the same behaviour.
dmesg from 7.0 release
http://dmesgd.nycbug.org/index.cgi?do=view&id=2960
Sevan
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, venture37@geeklan.co.uk
Subject: Re: port-macppc/51160: fstab created during install references wd(4), kernel expect to mount dk(4)y
Date: Sun, 22 May 2016 23:39:17 +0200
On Sun, May 22, 2016 at 09:25:01PM +0000, Sevan Janiyan wrote:
> dmesg from 7.0 release
> http://dmesgd.nycbug.org/index.cgi?do=view&id=2960
We have
options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
in GENERIC, combined with apple's partion manager being used as on-disk format
for macppc boot disks will probably do it. I don't have that option in my
custom macppc kernel, so it didn't hit me.
The way forward is to properly deal with it in the installer (which might
become easier once I've finished some rework I have in uncommitable state).
Wonder if we should drop that option from macppc generic for now...
Martin
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/51160: fstab created during install references wd(4),
kernel expect to mount dk(4)
Date: Sun, 22 May 2016 16:51:10 -0500 (CDT)
As I have always run whatever was -current on my macppc hosts, I recall
seeing this almost two years ago when disklabel wedge support was enabled
by default. I first saw it on i386 when '/etc/rc.d/root' failed because
it insisted on the "dk(4)" device but the "ld(4)" (hardware raid) device
was in "/etc/fstab".
Not much later, I saw it on macppc and just sort of went with it. The
only snag at the time being that wedge autodiscovery wasn't picking up
the flag indicating that a partition was a swap partition.
See PRs kern/49135, kern/49136, and (more directly related to this PR):
http://mail-index.netbsd.org/port-macppc/2015/01/22/msg002157.html
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/51160: fstab created during install references wd(4),
kernel expect to mount dk(4)y
Date: Sun, 22 May 2016 23:30:08 +0100
On 22/05/2016 22:40, Martin Husemann wrote:
> We have
>
> options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
>
> in GENERIC, combined with apple's partion manager being used as on-disk format
> for macppc boot disks will probably do it. I don't have that option in my
> custom macppc kernel, so it didn't hit me.
I'm dual booting my PowerBook with OS X.
> Wonder if we should drop that option from macppc generic for now...
If perhaps there are some changes coming up, it'd make it a lot easier
for users to test things.
Sevan
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, venture37@geeklan.co.uk
Subject: Re: port-macppc/51160: fstab created during install references
wd(4), kernel expect to mount dk(4)y
Date: Mon, 23 May 2016 00:49:05 +0200
On Sun, May 22, 2016 at 09:40:01PM +0000, Martin Husemann wrote:
> The following reply was made to PR port-macppc/51160; it has been noted by GNATS.
>
> From: Martin Husemann <martin@duskware.de>
> To: gnats-bugs@NetBSD.org
> Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.org, venture37@geeklan.co.uk
> Subject: Re: port-macppc/51160: fstab created during install references wd(4), kernel expect to mount dk(4)y
> Date: Sun, 22 May 2016 23:39:17 +0200
>
> On Sun, May 22, 2016 at 09:25:01PM +0000, Sevan Janiyan wrote:
> > dmesg from 7.0 release
> > http://dmesgd.nycbug.org/index.cgi?do=view&id=2960
>
> We have
>
> options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
>
> in GENERIC, combined with apple's partion manager being used as on-disk format
> for macppc boot disks will probably do it. I don't have that option in my
> custom macppc kernel, so it didn't hit me.
That option is fine. The more important ones are:
DKWEDGE_METHOD_BSDLABEL
DKWEDGE_METHOD_GPT
DKWEDGE_METHOD_MBR
DKWEDGE_METHOD_APPLE
which define that methods are auto-discovered. At least GPT should be on
the default list and bsdlabel should normally *not* be the default.
Joerg
From: Martin Husemann <martin@duskware.de>
To: Joerg Sonnenberger <joerg@bec.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-macppc/51160: fstab created during install references wd(4), kernel expect to mount dk(4)y
Date: Mon, 23 May 2016 10:20:37 +0200
On Mon, May 23, 2016 at 12:49:05AM +0200, Joerg Sonnenberger wrote:
> DKWEDGE_METHOD_APPLE
I guess this is the one biting Sevan right now.
Drop it for now, file a PR that it is missing, assign to me, and
re-enable it once the installer deals properly? (That is likely when we
will enable DKWEDGE_METHOD_BSDLABEL again on x86 as well).
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/51160: fstab created during install references wd(4),
kernel expect to mount dk(4)y
Date: Mon, 23 May 2016 15:43:15 +0100
On 23/05/2016 09:25, Martin Husemann wrote:
> On Mon, May 23, 2016 at 12:49:05AM +0200, Joerg Sonnenberger wrote:
> > DKWEDGE_METHOD_APPLE
>
> I guess this is the one biting Sevan right now.
>
> Drop it for now, file a PR that it is missing, assign to me, and
> re-enable it once the installer deals properly? (That is likely when we
> will enable DKWEDGE_METHOD_BSDLABEL again on x86 as well).
Thanks for this guys, I'll give the patch to remove DKWEDGE_METHOD_APPLE
a shot later and report for oks / get a PR filed.
Sevan
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-macppc/51160: fstab created during install references wd(4), kernel expect to mount dk(4)y
Date: Mon, 23 May 2016 18:45:39 +0000 (UTC)
martin@duskware.de (Martin Husemann) writes:
>On Sun, May 22, 2016 at 09:25:01PM +0000, Sevan Janiyan wrote:
>> dmesg from 7.0 release
>> http://dmesgd.nycbug.org/index.cgi?do=view&id=2960
>We have
>options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
>in GENERIC, combined with apple's partion manager being used as on-disk format
>for macppc boot disks will probably do it. I don't have that option in my
>custom macppc kernel, so it didn't hit me.
netbsd-7/macppc has
DKWEDGE_AUTODISCOVER
DKWEDGE_METHOD_GPT
So only if you use a disk with GPT label you get wedges.
netbsd-current/macppc also has
DKWEDGE_METHOD_APPLE
which creates wedges from apple's partition manager.
--
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/51160: fstab created during install references wd(4),
kernel expect to mount dk(4)y
Date: Sat, 28 May 2016 02:45:01 +0100
On 23/05/2016 09:25, Martin Husemann wrote:
> > DKWEDGE_METHOD_APPLE
>
> I guess this is the one biting Sevan right now.
>
> Drop it for now, file a PR that it is missing, assign to me, and
> re-enable it once the installer deals properly? (That is likely when we
> will enable DKWEDGE_METHOD_BSDLABEL again on x86 as well).
Indeed, removing this in new config & switching back to wd(4) in fstab,
system booted ok.
Sevan
From: "Sevan Janiyan" <sevan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51160 CVS commit: src/sys/arch/macppc/conf
Date: Sat, 28 May 2016 22:24:51 +0000
Module Name: src
Committed By: sevan
Date: Sat May 28 22:24:51 UTC 2016
Modified Files:
src/sys/arch/macppc/conf: GENERIC
Log Message:
As instructed by Martin@, disable DKWEDGE_METHOD_APPLE for now as it causes a
fresh install in a dual boot scenario to fail. This is because fstab will be
referencing wd(4) and the kernel expecting dk(4).
Closes PR port-macppc/51160
To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 src/sys/arch/macppc/conf/GENERIC
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Sat, 28 May 2016 22:31:52 +0000
State-Changed-Why:
DKWEDGE_METHOD_APPLE disabled in GENERIC
>Unformatted:
(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-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.