Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2002 12:03:23 -0700 (PDT)
From:      Gordon Tetlow <gordont@gnf.org>
To:        Michael Smith <msmith@mass.dis.org>
Cc:        hackers@freebsd.org
Subject:   Re: nextboot loader diff 
Message-ID:  <Pine.LNX.4.44.0205091201540.558-100000@smtp.gnf.org>
In-Reply-To: <200205091858.g49IwKI3002052@mass.dis.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 May 2002, Michael Smith wrote:

> > I've finally learned enough forth to put together a diff to implement some 
> > nextboot functionality in the loader.
> > 
> > Basically, the loader peeks into the first line of /boot/nextboot.conf to 
> > see if nextboot_enable="YES" is there. If it is, it reads the entire 
> > config, then rewrites the first line to nextboot_enable="NO"
> 
> Don't do this.  Put the variables directly into loader.conf.  There's no 
> need for another file.

I think it's a bad idea to try to rewrite /boot/loader.conf. I purposely 
went for /boot/nextboot.conf so that if something went wrong with the 
rewrite, it (hopefully) wouldn't hose the user's settings.

-gordon


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0205091201540.558-100000>