From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GQy52-0001DM-7g for mharc-grub-devel@gnu.org; Fri, 22 Sep 2006 23:21:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GQy4z-0001C8-Ti for grub-devel@gnu.org; Fri, 22 Sep 2006 23:21:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GQy4z-0001Bo-0I for grub-devel@gnu.org; Fri, 22 Sep 2006 23:21:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQy4y-0001Bg-Pa for grub-devel@gnu.org; Fri, 22 Sep 2006 23:21:24 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GQy8q-0000J1-V3 for grub-devel@gnu.org; Fri, 22 Sep 2006 23:25:25 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 511603CBFE66F for ; Sat, 23 Sep 2006 07:43:36 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id E29F03CBFE66E for ; Sat, 23 Sep 2006 07:43:35 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sat, 23 Sep 2006 05:20:37 +0200 User-Agent: KMail/1.8.2 References: <20060922163313.GA29160@khazad.dyndns.org> In-Reply-To: <20060922163313.GA29160@khazad.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609230520.37732.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.047515, version=0.17.2 Subject: Re: [PATCH] grub-probefs --root-device 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, 23 Sep 2006 03:21:26 -0000 On Friday 22 September 2006 18:33, Robert Millan wrote: > This would be very useful to get rid of ugly kludges in Debian, such as > this one: > > http://svn.debian.org/wsvn/pkg-grub/grub2/trunk/debian/update-grub?op=file& >rev=0&sc=0 (look for convert() here) > > Fortunately grub-probefs is already doing what we need, we just need a way > to tell it to print the information. However, this usage is against the original meaning, thus the naming is not appropriate any longer. In addition, I don't like that we make an ad-hoc text output (the first line is a fs module name, the second line is a root device name, etc.). So I propose that we rename the utility to "grub-probe" and add some options to change the target of grub-probe. The default should be probing a fs to help people who are used to grub-probefs. Here is an example: $ grub-probe --target=fs ufs $ grub-probe ufs $ grub-probe --target=drive (hd0,1) $ grub-probe --target=device /dev/hda1 What do you think? Okuji