On Tue, Sep 6, 2011 at 12:49 AM, Jason But <[email protected]> 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) _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
