Gordon Tetlow wrote:
> 
> 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.
> 
> There needs to be another file regardless. How else am I going to know
> which are supposed to be used on the next boot and which are normal values
> that the user has put in /boot/loader.conf?

I wrote the original 'nextboot to use block 1 (ususally unused)
to avoid under all circumstances writing into the filesystem.

Also, part of the weakness of the current system is that it presumes you know 
which IS the root filesystem. The original nextboot took as part of the 
information it loaded from block 1 (assumuing it checked out as a boot-spec 
block) the partition to use as the root. If the root partition  is totally hosed
you may not be able to READ /boot/{anything}. The original nextboot 
was really a local hack to fix a local problem, but I was thinking of making it
more
'acceptable' to the world as a whole by making it look for a DOS partition of 
some type, and {length 1,location 1} before loading information. 

I deliberatly kept this information outside the filesystem.

> 
> -gordon
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
+------------------------------------+       ______ _  __
|   __--_|\  Julian Elischer         |       \     U \/ / hard at work in 
|  /       \ [EMAIL PROTECTED]     +------>x   USA    \ a very strange
| (   OZ    )                                \___   ___ | country !
+- X_.---._/    presently in San Francisco       \_/   \\
          v



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to