From owner-cvs-all Sun May 9 19:45:32 1999 Delivered-To: cvs-all@freebsd.org Received: from dingo.cdrom.com (castles553.castles.com [208.214.165.117]) by hub.freebsd.org (Postfix) with ESMTP id 0203314D76; Sun, 9 May 1999 19:45:28 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id TAA10132; Sun, 9 May 1999 19:44:06 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199905100244.TAA10132@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf options src/sys/i386/i386 autoconf.c src/sys/i386/conf GENERIC LINT Makefile.i386 files.i386 In-reply-to: Your message of "Sun, 09 May 1999 09:46:06 PDT." <199905091646.JAA04435@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 09 May 1999 19:44:05 -0700 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > You can still configure a root device (which is used if you give > the "-r" flag) but now with an option: > > options ROOTDEVNAME=\"da0s2e\" > > The string is parsed by the same code as at the "boot -a" prompt. Could you use something like: rootdevname = getenv("kern.rootdev.name"); #ifdef ROOTDEVNAME if (!rootdevname) rootdevname = ROOTDEVNAME; #else if (!rootdevname) rootdevname = ... old guessing behaviour so that the loader can unconditionally override the root device name? I have this crazy plan to read /etc/fstab to try find the root device before starting the kernel, which should make all this crap about guessing it based on the disk label obsolete. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message