From owner-freebsd-questions Thu Aug 31 6:30:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom0-012.telepath.com [216.14.0.12]) by hub.freebsd.org (Postfix) with SMTP id 1021437B42C for ; Thu, 31 Aug 2000 06:29:53 -0700 (PDT) Received: (qmail 84314 invoked by uid 100); 31 Aug 2000 13:29:16 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14766.23980.183756.126206@guru.mired.org> Date: Thu, 31 Aug 2000 08:29:16 -0500 (CDT) To: R Joseph Wright Cc: questions@freebsd.org, zzhang@cs.binghamton.edu Subject: Re: boot manager other than booteasy In-Reply-To: <115781327@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG R Joseph Wright writes: > And Siegbert Baude spoke: > > Zhihui Zhang wrote: > > > I have installed Linux on my laptop and am using LILO as the boot manager. > > > Compared to booteasy, LILO can not remember the last OS I booted from and > > > boot from that OS automatically next time powerup. But booteasy can not > > > recognize Linux in a DOS extended partition. Is there any FREE boot > > > manager that can boot Linux in a DOS extended partition and yet can > > > remember the last OS it booted from? > That looks very slick and all, but I recommend grub, now in the ports > collection (sysutils/grub). It will boot virtually anything and can be used > interactively on its own command line. It also does not need Lilo to boot > into Linux. > > However, I don't know if it will remember the last OS booted > from and boot from it. No, it can't. The following patch fixes that. It adds the command "savedefault", which saves the current entry number when used in an entry, and makes the "default" command accept the keyword "saved", which uses the value from the last saved default. Grub is much more flexible than booteasy in general, as it boots "entries" as opposed to partitions, so you can have a menu that boots the same OS in various modes. This patch carries that on, allowing some entries to become the default, and not others. Feedback on it would be greatly appreciated.