How to use grub regex?

2016-09-16 Thread Mat Troi
Hi, I want to find out if a string contain certain word in grub. I am thinking about using grub regex. Problem: set string = (hd0,gpt1)/blah/blah I want to find if cd is in string, how do I do that? I tried "regex --set=foo 'cd' $string echo $foo There isn't anything in foo, so I guess my reg

Question: How to force GRUB module dependency?

2016-06-02 Thread Mat Troi
C to use function_foo in mod A? Thanks, Mat Troi ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: Grub get and set efi variables

2015-11-24 Thread Mat Troi
For a specific project implementation, I need to be able to write and read one EFI variable during boot only. So I have written a grub command to do just that. But the issue is with setting these attributes to the variable (GRUB_EFI_VARIABLE_NON_VOLATILE, GRUB_EFI_VARIABLE_BOOTSERVICE_ACCESS), I

Re: Grub get and set efi variables

2015-11-03 Thread Mat Troi
Hi SevenBits, Thanks for letting me know. Out of curiosity, any particular reason why this patch did not get merged? It looks to be a useful feature. Thanks, Mat On Tue, Nov 3, 2015 at 12:12 PM, SevenBits wrote: > On Tuesday, November 3, 2015, Mat Troi wrote: > >> Hi, >

Grub get and set efi variables

2015-11-03 Thread Mat Troi
Hi, Searching through google, I see there was an email thread to add a patch for getting and setting efi variable in GRUB2. https://lists.gnu.org/archive/html/grub-devel/2013-11/msg00328.html However, looking at the tree, it doesn't look like this patch was added, am I missing something? Does an

Re: GnuTLS Self-Test Question

2015-03-17 Thread Mat Troi
, thanks. On Fri, Feb 20, 2015 at 12:56 PM, Mat Troi wrote: > Hi, > > I am trying to run GnuTLS and I have 6 errors: > Hostname correctly matches (1) > Hostname correctly matches (1) > Hostname correctly matches (1) > Hostname correctly does not match (0) > Self test `./hostnam

Re: Error when building module with efi's "grub_efi_get_variable" function

2014-10-31 Thread Mat Troi
Yes. It works now by adding 'enable=efi' to Makefile.core.def and rerun autogen.sh module = { name = mymod; common = net/mymod.c; enable = efi; }; On Wed, Oct 29, 2014 at 11:30 AM, Andrei Borzenkov wrote: > В Tue, 28 Oct 2014 18:43:52 -0700 > Mat Troi пишет: > >

Error when building module with efi's "grub_efi_get_variable" function

2014-10-28 Thread Mat Troi
Hi, This is my Makefile.core.def: ... ... module = { name = mymod; common = net/mymod.c; }; ... ... When I tried to build I get: mv syminfo.lst.new syminfo.lst cat syminfo.lst | sort | gawk -f /build/boot_project/src/grub/grub2/grub-core/genmoddep.awk > moddep.lst || (rm -f moddep.lst; exit 1

Re: Has anyone integrate openSSL into GRUB?

2014-09-19 Thread Mat Troi
n Mon, Sep 1, 2014 at 11:56 AM, Vladimir 'φ-coder/phcoder' Serbinenko < phco...@gmail.com> wrote: > On 30.08.2014 00:55, Mat Troi wrote: > > Hi, > > > > Just wondering if anyone has tried to integrate openSSL into GRUB? > > > It's possible to int

Has anyone integrate openSSL into GRUB?

2014-08-29 Thread Mat Troi
Hi, Just wondering if anyone has tried to integrate openSSL into GRUB? Thanks, Matt ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Question: Which module to test if changing code in grub-core/script/script.c and grub-core/commands/wildcard.c

2014-05-19 Thread Mat Troi
Hi, After adding some grub_printf statements for debugging in grub-core/script/script.c and grub-core/commands/wildcard.c, which module do I need to load and test to see my printouts? I tried to reload normal.mod and run some grub commands but I didn't see my changes. Thanks, Mat __

Re: How to develop and integrate brand new module into GRUB2?

2013-10-02 Thread Mat Troi
the warnings/errors copy files from grub2 folder over to machine B. After autogen.sh runs successfully, copy Makefile.in back to your work environment and from there run your normal build. I hope this helps, Mat Troi On Thu, Sep 26, 2013 at 12:35 AM, Vladimir 'φ-coder/phcoder' Serbine

How to develop and integrate brand new module into GRUB2?

2013-08-27 Thread Mat Troi
Hi, I need to develop a new module and integrate into GRUB2. I already have the code written, my question is how to integrate the code into the existing GRUB2 build system so that the code gets built when make is entered at GRUB2's top level directory? My module is located at /grub2/grub-core/tes