Date: Sun, 09 May 1999 19:44:05 -0700 From: Mike Smith <mike@smith.net.au> To: Poul-Henning Kamp <phk@FreeBSD.org> 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 Message-ID: <199905100244.TAA10132@dingo.cdrom.com> In-Reply-To: Your message of "Sun, 09 May 1999 09:46:06 PDT." <199905091646.JAA04435@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905100244.TAA10132>
