From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K2C1x-0001Rk-IP for mharc-grub-devel@gnu.org; Fri, 30 May 2008 17:20:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2C1v-0001RJ-SK for grub-devel@gnu.org; Fri, 30 May 2008 17:20:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2C1t-0001Qv-4O for grub-devel@gnu.org; Fri, 30 May 2008 17:20:55 -0400 Received: from [199.232.76.173] (port=34885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2C1s-0001Qs-Tw for grub-devel@gnu.org; Fri, 30 May 2008 17:20:52 -0400 Received: from aybabtu.com ([69.60.117.155]:35724) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2C1s-0007yn-OJ for grub-devel@gnu.org; Fri, 30 May 2008 17:20:52 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K2C1N-0003wP-4y for grub-devel@gnu.org; Fri, 30 May 2008 23:20:21 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1K2C1Y-0000U9-U5 for grub-devel@gnu.org; Fri, 30 May 2008 23:20:32 +0200 Date: Fri, 30 May 2008 23:20:32 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20080530212032.GA1672@thorin> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline Content-Transfer-Encoding: 8bit Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: backwards compatibility in grub.cfg 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: Fri, 30 May 2008 21:20:56 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi, I'm adding this to the Debian package. We need this for backwards compatibility in case the new update-grub is used in combination with an older install of GRUB in /boot/grub (which will surely happen a lot). I'm wondering if it makes sense to commit this in official GRUB too. For people installing by hand it's not a problem, and distributors can sort it out themselves, I guess, but it may also be helpful. What do you think? (we have similar checks like "if font " in 00_header, but this is much uglier) -- Robert Millan I know my rights; I want my phone call! What good is a phone call… if you are unable to speak? (as seen on /.) --IJpNTDwzlM2Ie8A6 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="compat.diff" diff -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp ../grub2/util/update-grub_lib.in ./util/update-grub_lib.in --- ../grub2/util/update-grub_lib.in 2008-05-30 22:55:35.000000000 +0200 +++ ./util/update-grub_lib.in 2008-05-30 23:16:53.000000000 +0200 @@ -116,10 +116,9 @@ prepare_grub_to_access_device () # If there's a filesystem UUID that GRUB is capable of identifiing, use it; # otherwise set root as per value in device.map. + echo "set root=`${grub_probe} --device ${device} --target=drive`" if fs_uuid="`grub-probe --device ${device} --target=fs_uuid 2> /dev/null`" ; then echo "search --fs-uuid --set ${fs_uuid}" - else - echo "set root=`${grub_probe} --device ${device} --target=drive`" fi # Abstraction modules aren't auto-loaded. --IJpNTDwzlM2Ie8A6--