From owner-cvs-all Sun May 9 21:32: 2 1999 Delivered-To: cvs-all@freebsd.org Received: from phk.freebsd.dk (phk.freebsd.dk [212.242.40.153]) by hub.freebsd.org (Postfix) with ESMTP id A023614F33; Sun, 9 May 1999 21:31:55 -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 GAA12427; Mon, 10 May 1999 06:31:54 +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 GAA23560; Mon, 10 May 1999 06:31:44 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Mike Smith 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 19:44:05 PDT." <199905100244.TAA10132@dingo.cdrom.com> Date: Mon, 10 May 1999 06:31:43 +0200 Message-ID: <23558.926310703@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Feel free to do so. In message <199905100244.TAA10132@dingo.cdrom.com>, Mike Smith writes: >> 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 > > > > -- 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 cvs-all" in the body of the message