help-grub
[Top][All Lists]
Advanced

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

Re: Looping through files


From: Jason But
Subject: Re: Looping through files
Date: Thu, 08 Sep 2011 09:49:04 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20) Gecko/20110907 Lightning/1.0b3pre Thunderbird/3.1.12

Yes that works :-)

Many thanks, it was not clear anywhere I searched that the regexp module
would be necessary

Now all I need is my background per menu command answered and all will be
well with the world :)

At least until tomorrow....

> On Tue, Sep 6, 2011 at 12:49 AM, Jason But <address@hidden> wrote:
>> Hello all
>>
>> I am trying to make a sort-of complicated grub.cfg file where I want to
>> search a series of files on the disk.
>>
>> At first I tried something like
>>
>> for dir_name in /boot/* ; do
>>  echo $dir_name
>>  read
>> done
> 
> This is actually the correct syntax, but globs are only expanded when
> the "regexp" module is loaded. So add "insmod regexp" before this code
> and it will work. Later today there should be a practical example of
> this @ 
> http://www.supergrubdisk.org/wiki/Loopback.cfg#How_do_you_use_a_loopback.cfg_to_boot_an_iso.3F
> .
> 




reply via email to

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