From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LhCPM-0000zc-UK for mharc-grub-devel@gnu.org; Tue, 10 Mar 2009 20:34:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhCPL-0000zX-Fw for grub-devel@gnu.org; Tue, 10 Mar 2009 20:34:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhCPK-0000yq-4s for grub-devel@gnu.org; Tue, 10 Mar 2009 20:34:51 -0400 Received: from [199.232.76.173] (port=54108 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhCPK-0000yk-1r for grub-devel@gnu.org; Tue, 10 Mar 2009 20:34:50 -0400 Received: from ironport-smtp02.maxnet.net.nz ([123.100.71.102]:37286) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhCPJ-0000Jf-Ib for grub-devel@gnu.org; Tue, 10 Mar 2009 20:34:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAF+jtknAqAJa/2dsb2JhbADSPIQNBg X-IronPort-AV: E=Sophos;i="4.38,338,1233486000"; d="scan'208";a="116983819" Received: from smtp01.maxnet.net.nz ([123.100.71.110]) by ironport-smtp02.maxnet.net.nz with ESMTP; 11 Mar 2009 13:34:44 +1300 Received: from [192.168.2.90] (121-73-135-210.cable.telstraclear.net [121.73.135.210]) by smtp01.maxnet.net.nz (Postfix) with ESMTPA id 46427A3B85 for ; Wed, 11 Mar 2009 13:34:43 +1300 (NZDT) From: "Centurion Computer Technology (2005) Ltd" To: The development of GRUB 2 Content-Type: text/plain Organization: Centurion Computer Technology (2005) Ltd Date: Wed, 11 Mar 2009 13:34:46 +1300 Message-Id: <1236731686.9908.22.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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: Wed, 11 Mar 2009 00:34:51 -0000 Hi, I am playing with the search command in grub2 from debian experimental and have noticed some oddness The search command currently returns the device as hdX,X rather than (hdX,X). This means that the variable created using -s can't be used as a replacement for the device string. For Example I'd like to be able to do this: # Set our root device search -f /grub/grub.cfg -s root # Set our prefix set prefix=${root}/grub/ # I think broken variable handling means this doesn't work. menuentry "My Linux OS" { search -s LINUX_ROOT -u XXXX-YYYY-ZZZZ-AAAA-BBBB set root=$LINUX_ROOT linux=/vmlinuz initrd=/intrd.img } Or do I completely misunderstand the search command and usage of variables? -- Daniel Reurich Centurion Computer Technology (2005) Limited. Ph: 021 797 722