From owner-freebsd-current Fri Jan 15 12:02:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03957 for freebsd-current-outgoing; Fri, 15 Jan 1999 12:02:06 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA03945 for ; Fri, 15 Jan 1999 12:02:04 -0800 (PST) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.8.8/8.8.7) with ESMTP id OAA05740; Fri, 15 Jan 1999 14:56:54 -0500 (EST) Date: Fri, 15 Jan 1999 14:56:54 -0500 (EST) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Mike Smith cc: Poul-Henning Kamp , Jaye Mathisen , current@FreeBSD.ORG Subject: Re: Can the bootloader create a file or set a flag in the bootblocks? In-Reply-To: <199901151823.KAA01489@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 15 Jan 1999, Mike Smith wrote: > > > > That particular feature could also be done with "once-persistence" > > as in: On next reboot load this file... > > Sure. The problem is just implementing any persistence at all. > Consider that we support the following backing-stores for the kernel: > > - UFS on local disk > - (V)FAT(32) > - NFS > - TFTP > - iso9660 > > Obviously we can't write to CDROMs, but a persistence mechanism needs > to work with each of these others. I've been leaning towards a very > simple solution using a small, preallocated file which we just > overwrite. It's not beautiful, but it's workable. It can't go into free space in a boot block? We still have room left over... It could only be a few bytes, enumerating numbered kernels in /boot/kernels.rc, or something like that > > -- > \\ 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 freebsd-current" in the body of the message > Brian Feldman _ __ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ ____ | _ \__ \ |) | FreeBSD: The Power to Serve! _ __ ___ ____ _____ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message