From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Iqdov-00063g-9j for mharc-grub-devel@gnu.org; Fri, 09 Nov 2007 19:03:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iqdot-00063W-Qe for grub-devel@gnu.org; Fri, 09 Nov 2007 19:03:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iqdor-00062j-Ip for grub-devel@gnu.org; Fri, 09 Nov 2007 19:03:26 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iqdor-00062d-FO for grub-devel@gnu.org; Fri, 09 Nov 2007 19:03:25 -0500 Received: from mailout03.sul.t-online.de ([194.25.134.81] helo=mailout03.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iqdoq-0004qx-Qe for grub-devel@gnu.org; Fri, 09 Nov 2007 19:03:25 -0500 Received: from fwd28.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1Iqdoq-00067b-00; Sat, 10 Nov 2007 01:03:24 +0100 Received: from [10.3.2.2] (G0L6jMZ6ohMBqlKrnDe3Th0cTyEj0gRwrVRN1XZd+ZXlFAYHL9JEWwh6v5hkLi7w3T@[217.235.202.245]) by fwd28.aul.t-online.de with esmtp id 1Iqdon-1T6gee0; Sat, 10 Nov 2007 01:03:21 +0100 Message-ID: <4734F54D.1090305@t-online.de> Date: Sat, 10 Nov 2007 01:03:25 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: The development of GRUB 2 References: <47264070.7060007@t-online.de> <20071109211302.GC23437@thorin> <4734D447.9030202@t-online.de> <20071109225640.GB939@thorin> In-Reply-To: <20071109225640.GB939@thorin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: G0L6jMZ6ohMBqlKrnDe3Th0cTyEj0gRwrVRN1XZd+ZXlFAYHL9JEWwh6v5hkLi7w3T X-TOI-MSGID: b88fa351-a67c-47ce-ac1a-683ae1ae0934 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] grub-probe -t prefix, -t all 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: Sat, 10 Nov 2007 00:03:28 -0000 Robert Millan wrote: > ... > Note that make_system_path_relative_to_its_root() actually exists :-/ > > Sorry, I didn't search update-grub_lib.in :-\ Apparently both grub_get_prefix() and make_system_path_relative_to_its_root() use the same algorithm. Both do not work on Cygwin due to special (multi- to single-root) mount point handling. It is desirable to have only one implementation for this non-trivial function. A native C implementation is needed for grub-setup, therefore "grub-probe -t prefix" makes sense for scripts. > If you provide an (obviously better) way to do the same thing, maybe you > could also get rid of the other one in your patch? > > Yes. Christian