From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KLPn8-0006a4-Jc for mharc-grub-devel@gnu.org; Tue, 22 Jul 2008 17:53:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLPn7-0006Zz-Dt for grub-devel@gnu.org; Tue, 22 Jul 2008 17:53:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLPn5-0006Zn-VZ for grub-devel@gnu.org; Tue, 22 Jul 2008 17:53:05 -0400 Received: from [199.232.76.173] (port=51471 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLPn5-0006Zk-S6 for grub-devel@gnu.org; Tue, 22 Jul 2008 17:53:03 -0400 Received: from aybabtu.com ([69.60.117.155]:59607) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLPn5-0001E8-58 for grub-devel@gnu.org; Tue, 22 Jul 2008 17:53:03 -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.69) (envelope-from ) id 1KLPh9-0003An-9g for grub-devel@gnu.org; Tue, 22 Jul 2008 23:46:55 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1KLPm4-000499-SW for grub-devel@gnu.org; Tue, 22 Jul 2008 23:52:00 +0200 Date: Tue, 22 Jul 2008 23:52:00 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080722215200.GA15825@thorin> References: <4883322E.6040606@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4883322E.6040606@t-online.de> 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: Re: [PATCH] grub-probe -t prefix, fix update-grub_lib for Cygwin 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: Tue, 22 Jul 2008 21:53:05 -0000 On Sun, Jul 20, 2008 at 02:40:14PM +0200, Christian Franke wrote: > The shell function make_system_path_relative_to_its_root() does not work > on Cygwin due to path mapping (e.g. /boot/grub/ is actually > /cygwin/boot/grub). > > This patch adds '-t prefix' to grub-probe. It prints result from > grub_get_prefix() which is already extended for Cygwin (svn rev 1584). > The result is used in make_system_path_relative_to_its_root(). This > keeps the platform dependent code in getroot.c. > > Christian > > 2008-07-20 Christian Franke > > * util/grub-probe.c (enum): Add PRINT PREFIX. > (probe): Add PRINT_PREFIX, prints result of > grub_get_prefix (). > (usage): Add `prefix' to `-t' usage text. > Add some '\n' to avoid excess long lines. > (main): Add check for `-t prefix' option. This is different than the usual grub-probe usage in that it doesn't operate on a device. Perhaps it would make sense to add the functionality you want in a separate utility? I have an increasing feeling that grub-probe is becoming bloated (though I admit, this is mostly my fault) -- 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 /.)