From owner-freebsd-current Sun Apr 8 19:54:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from newsguy.com (perry.pathlink.com [209.155.233.33]) by hub.freebsd.org (Postfix) with ESMTP id 3C08F37B422 for ; Sun, 8 Apr 2001 19:54:19 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (ppp083-bsace7001.telebrasilia.net.br [200.181.80.83]) by newsguy.com (8.11.0/8.9.1) with ESMTP id f392r1n22250; Sun, 8 Apr 2001 19:53:02 -0700 (PDT) Message-ID: <3AD125D0.8CD47620@newsguy.com> Date: Mon, 09 Apr 2001 00:00:32 -0300 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en,pt-BR,pt,en-GB,en-US,ja MIME-Version: 1.0 To: Andrew Gallatin Cc: freebsd-current@FreeBSD.ORG Subject: Re: loader question References: <15056.50143.136761.578801@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrew Gallatin wrote: > > How do you make the loader _NOT_ load a kernel until after the > countdown? > > On slow media (like NFS boots or VMware, or old AlphaServers) its > really painful to wait for the kernel to unload just so you can unload > it and then load an alternate kernel. Actually, it requires some work to do that. Previously, autoboot only loaded the kernel after the countdown, but that resulted in the small problem in the user _not_ knowing exactly what kernel was being loaded until after the countdown had finished. The stuff in examples/bootforth does something similar with the menu. The menu waits until you type a key or up to a certain amount of time, and then go do whatever it is that was selected/is default. You can look there for an example and adapt it to suit your needs, but Forth code is not particularly easy to understand, even something as simples as that. Of course, since you _are_ that far from the machine, I'd recommend testing anything locally first. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.secret.bsdconspiracy.net all your kernels arpanic: blockable sleep lock (sleep mutex) Giant @ ../../kern/kern_sig.c:153 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message