From owner-freebsd-current Sun May 9 0:52:46 1999 Delivered-To: freebsd-current@freebsd.org Received: from phk.freebsd.dk (phk.freebsd.dk [212.242.40.153]) by hub.freebsd.org (Postfix) with ESMTP id 1914E14E36 for ; Sun, 9 May 1999 00:52:42 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by phk.freebsd.dk (8.9.1/8.8.8) with ESMTP id JAA06808; Sun, 9 May 1999 09:52:38 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.2/8.9.2) with ESMTP id JAA19106; Sun, 9 May 1999 09:52:31 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Jos Backus Cc: current@FreeBSD.ORG Subject: Re: mountroot problem In-reply-to: Your message of "Sat, 08 May 1999 23:19:49 +0200." <19990508231949.A93718@hal.mpn.cp.philips.com> Date: Sun, 09 May 1999 09:52:31 +0200 Message-ID: <19104.926236351@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I found it, will commit in a sec. Sorry. Poul-Henning In message <19990508231949.A93718@hal.mpn.cp.philips.com>, Jos Backus writes: >Some more information: > >In sys/i386/i386/autoconf I'm seeing the following happen: > >static void >setroot() >{ > int majdev, mindev, unit, slice, part; > dev_t newrootdev; > char partname[2]; > char *sname; > > if (boothowto & RB_DFLTROOT || (bootdev & B_MAGICMASK) != B_DEVMAGIC) > return; > majdev = B_TYPE(bootdev); > printf("setroot: majdev=%d,bdevsw(majdev)=%p\n",majdev,bdevsw(majdev)); > if (majdev >= nblkdev || bdevsw(majdev) == NULL) > return; > unit = B_UNIT(bootdev); > slice = B_SLICE(bootdev); > >etc. > >which prints > > setroot: majdev=4,bdevsw(majdev)=0 > >Thus the function returns, without setting the name of the root device further >on in the code (it would appear that that is where it happens). > >-- >Jos Backus _/ _/_/_/ "Reliability means never > _/ _/ _/ having to say you're sorry." > _/ _/_/_/ -- D. J. Bernstein > _/ _/ _/ _/ >Jos.Backus@nl.origin-it.com _/_/ _/_/_/ use Std::Disclaimer; > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message