help-grub
[Top][All Lists]
Advanced

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

Re: Looping through files


From: Jordan Uggla
Subject: Re: Looping through files
Date: Wed, 7 Sep 2011 12:20:10 -0700

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
.

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)



reply via email to

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