From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E6OpC-0006z4-3d for mharc-grub-devel@gnu.org; Sat, 20 Aug 2005 04:35:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E6OaB-0006Yx-Rd for grub-devel@gnu.org; Sat, 20 Aug 2005 04:20:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E6OQE-0005Vt-Jp for grub-devel@gnu.org; Sat, 20 Aug 2005 04:09:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E6OOM-0005BK-Cs for grub-devel@gnu.org; Sat, 20 Aug 2005 04:07:52 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E6OFA-0006HB-FQ for grub-devel@gnu.org; Sat, 20 Aug 2005 03:58:20 -0400 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 83FA1FFC1FE0 for ; Sat, 20 Aug 2005 09:58:13 +0200 (CEST) Received: from 127.0.0.1 ([127.0.0.1] helo=ip6-localhost) by ASSP-nospam ; 20 Aug 05 07:58:13 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sat, 20 Aug 2005 09:56:51 +0200 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508200956.51249.okuji@enbug.org> Subject: search command 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, 20 Aug 2005 08:35:21 -0000 I've implement a new command "search" right now. This is similar to "find" in GRUB Legacy, but has more features. I renamed it to "search", because it is significantly different from "find" in GNU. Some supposed usage: # Find a partition whose label is "Boot Partition" and set the result in root. search --label "Boot Partition" --set linux /vmlinuz # Find a partition which has a file "grub2.cfg" and store it in a variable. search --file /boot/grub/grub2.cfg --set=VAR configfile ($VAR)/boot/grub/grub2.cfg Okuji