From owner-freebsd-hackers Thu May 9 12: 3:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns2.gnf.org (ns2.gnf.org [63.196.132.68]) by hub.freebsd.org (Postfix) with ESMTP id 9E49F37B403 for ; Thu, 9 May 2002 12:03:28 -0700 (PDT) Received: from mail.gnf.org (smtp.gnf.org [172.25.11.11]) by ns2.gnf.org (8.11.6/8.11.6) with ESMTP id g49IrqO67814; Thu, 9 May 2002 11:53:56 -0700 (PDT) (envelope-from gordont@gnf.org) Received: by mail.gnf.org (Postfix, from userid 888) id 7D7A711E536; Thu, 9 May 2002 12:03:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.gnf.org (Postfix) with ESMTP id 8965511A572; Thu, 9 May 2002 12:03:23 -0700 (PDT) Date: Thu, 9 May 2002 12:03:23 -0700 (PDT) From: Gordon Tetlow To: Michael Smith Cc: hackers@freebsd.org Subject: Re: nextboot loader diff In-Reply-To: <200205091858.g49IwKI3002052@mass.dis.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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