grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Search command.


From: Centurion Computer Technology (2005) Ltd
Subject: Search command.
Date: Wed, 11 Mar 2009 13:34:46 +1300

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]