Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GNvbR-0002Ch-Tj for mharc-grub-devel@gnu.org; Thu, 14 Sep 2006 14:06:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GNvbP-0002C9-VN for grub-devel@gnu.org; Thu, 14 Sep 2006 14:06:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GNvbP-0002Bj-67 for grub-devel@gnu.org; Thu, 14 Sep 2006 14:06:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNvbN-0002Aw-2s; Thu, 14 Sep 2006 14:06:17 -0400 Received: from [69.60.117.155] (helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GNvdM-00019x-K1; Thu, 14 Sep 2006 14:08:20 -0400 Received: from 138.red-62-57-141.user.auna.net ([62.57.141.138] helo=khazad.dyndns.org) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.63) (envelope-from ) id 1GNvbC-0006QX-Nu; Thu, 14 Sep 2006 20:06:06 +0200 Received: from rmh by khazad.dyndns.org with local (Exim 4.63) (envelope-from ) id 1GNvck-0004RF-7l; Thu, 14 Sep 2006 20:07:42 +0200 Date: Thu, 14 Sep 2006 20:07:41 +0200 From: Robert Millan To: bug-grub@gnu.org, grub-devel@gnu.org Message-ID: <20060914180741.GA14196@khazad.dyndns.org> References: <20060819111637.GA3620@khazad.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060819111637.GA3620@khazad.dyndns.org> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Subject: Re: [PATCH] skip removal of menu.lst in grub-install X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 18:06:20 -0000 Any comments on this? (resending to grub-devel, previously missed it). On Sat, Aug 19, 2006 at 01:16:37PM +0200, Robert Millan wrote: > > Hi! > > grub-install removing menu.lst makes it hard to coexist with grub legacy in > the same system. Please consider the attached patch. > > 2006-08-19 Robert Millan > > * util/i386/pc/grub-install.in: Skip menu.lst when removing > /boot/grub/*.lst. > > -- > Robert Millan > > My spam trap is honeypot@aybabtu.com. Note: this address is only intended for > spam harvesters. Writing to it will get you added to my black list. > 2006-08-19 Robert Millan > > * util/i386/pc/grub-install.in: Skip menu.lst when removing > /boot/grub/*.lst. > > Index: util/i386/pc/grub-install.in > =================================================================== > RCS file: /sources/grub/grub2/util/i386/pc/grub-install.in,v > retrieving revision 1.8 > diff -u -r1.8 grub-install.in > --- util/i386/pc/grub-install.in 28 May 2006 23:01:43 -0000 1.8 > +++ util/i386/pc/grub-install.in 19 Aug 2006 11:02:11 -0000 > @@ -198,7 +198,7 @@ > > # Copy the GRUB images to the GRUB directory. > for file in ${grubdir}/*.mod ${grubdir}/*.lst ${grubdir}/*.img; do > - if test -f $file; then > + if test -f $file && [ "`basename $file`" != menu.lst ]; then > rm -f $file || exit 1 > fi > done > @@ -206,7 +206,7 @@ > cp -f $file ${grubdir} || exit 1 > done > > -# Create the core image. First, auto-detect the filesystme module. > +# Create the core image. First, auto-detect the filesystem module. > fs_module=`$grub_probefs --device-map=${device_map} ${grubdir}` > if test "x$fs_module" = x -a "x$modules" = x; then > echo "Auto-detection of a filesystem module failed." 1>&2 -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.