help-grub
[Top][All Lists]
Advanced

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

Re: How to enumerate files in a directory using the builtin shell?


From: Andrei Borzenkov
Subject: Re: How to enumerate files in a directory using the builtin shell?
Date: Fri, 29 Jan 2016 20:19:28 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

29.01.2016 17:56, Thiago Padilha пишет:
> Jordan, thanks for the help
> 
> Unfortunately, the "insmod regexp" line is not working for me, at least not
> from the configuration file. This my grub.cfg:
...

> 
>     search.fs_uuid 1b3fdfe0-99cb-4aba-9acd-695b84be63cc btrfs hd0,gpt3
>     insmod regexp
>     for os_path in ($btrfs)/os/*; do
>       echo $os_path
>       regexp --set=os_name '^\([^)]*\)/os/(.*)$' $os_path
>     done
> 
> Notice that I removed the configfile line to enter the interactive shell. I
> was expecting to see a list of distro names printed but nothing happens.

It does; but after grub finished processing of grub.cfg it clears screen
and displays usual banner. Add "sleep 15" after for loop.



reply via email to

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