On Fri, Jun 28, 2024 at 02:54:53PM +0300, Vladimir 'phcoder' Serbinenko wrote:
> > + if (protector == NULL || protector->name == NULL || grub_strlen
> > (protector->name) == 0)
> > +return GRUB_ERR_BAD_ARGUMENT;
> > +
> Here and in the other places you miss grub_error. Note that the
> message
On Sun, 30 Jun 2024 20:05:10 +0300
"Vladimir 'phcoder' Serbinenko" wrote:
> Did you try:
> insmod regexp
> for x in (*); do
>
> done
> Just trying to understand the problem
I didn't know that was possible, the command you gave me works fine and
fits the bill even better than my half-baked pa
Did you try:
insmod regexp
for x in (*); do
done
Just trying to understand the problem
Le dim. 30 juin 2024, 19:26, Denis 'GNUtoo' Carikli <
gnu...@cyberdimension.org> a écrit :
> Hi,
>
> The problem we try to solve with --set=VARNAME in ls.
>
If the given environment variable doesn't exist, grub_env_append will
have the same effect than grub_env_set. But if the variable do exist,
using grub_env_append will append the given content to the variable
content.
This can be used to build a command that can append data to an
existing variable.
The ls command has no way to get the name of the files or directories
being listed inside an environment variable.
This enables to programmatically, inside the grub.cfg be able to look
for files and react if they are found or not found.
Signed-off-by: Denis 'GNUtoo' Carikli
---
grub-core/comman
There is currently no way to get a list of devices being found inside
an environment variable.
The GNU Boot project is a boot firmware distribution that currently
ships images with a deblobbed Coreboot, GRUB, and a hand-made GRUB
configuration.
Once installed, the GRUB provided by GNU Boot is sup
Hi,
The problem we try to solve with --set=VARNAME in ls.
=
In the GNU Boot project (a free software distribution that releases
free software boot firmware images), we provide images with (a
deblobbed) Coreboot and GRUB (run as a Coreboot payload
This can be used to easily filter out the content of an environment
variable with multiple elements:
for elm in $list ; do
if regexp ^grub $elm ; then
append results=" $elm"
fi
done
The goal is to use it to be able to be able to filter devices being
found once w