Re: Grub2, can the following be done

2017-04-12 Thread Xen
Andrei Borzenkov schreef op 12-04-2017 5:26: For PCBIOS having each distribution install its GRUB in own partition and chainloading it is well understood and established practice, but it makes it rather hard to auto-detect and incorporate such boot blocks. You mean autodetecting Grub boot reco

Re: Grub2, can the following be done

2017-04-12 Thread Vladimir 'phcoder' Serbinenko
On Wed, Apr 12, 2017, 13:26 Andrei Borzenkov wrote: 12.04.2017 02:28, Vladimir 'phcoder' Serbinenko пишет: > I documented this in the manual. See "standalone multi-OS setup" > There is no such section. You probably mean Configuration - Multi-boot manual config. Unfortunately this is not as simp

Re: Grub2, can the following be done

2017-04-12 Thread Xen
Xen schreef op 12-04-2017 9:47: Andrei Borzenkov schreef op 12-04-2017 5:26: For PCBIOS having each distribution install its GRUB in own partition and chainloading it is well understood and established practice, but it makes it rather hard to auto-detect and incorporate such boot blocks. Pa

Re: Grub2, can the following be done

2017-04-12 Thread Vladimir 'phcoder' Serbinenko
On Wed, Apr 12, 2017, 18:07 Xen wrote: > Xen schreef op 12-04-2017 9:47: > > Andrei Borzenkov schreef op 12-04-2017 5:26: > > > >> For PCBIOS having each distribution install its GRUB in own partition > >> and chainloading it is well understood and established practice, but > >> it > >> makes it

Re: Grub2, can the following be done

2017-04-12 Thread Xen
Vladimir 'phcoder' Serbinenko schreef op 12-04-2017 10:26: The new config incorporates those ideas. I'll share the proposal when it's in a better shape. Alright thanks, sounds cool :). ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu

Contribution

2017-04-12 Thread Nicole
I have written two small, simple modules to address limitations I found in in Grub. 1. does simple arithmetic - nothing fancy. It's invoked by using something like this: insmod arithmetic arithmetic --set fred --min 2 -- max 10 "1" "+" "2" the operators supported are unary -,!; binary +,-,/,

Re: Contribution

2017-04-12 Thread Vladimir 'phcoder' Serbinenko
On Wed, Apr 12, 2017, 20:37 Nicole wrote: > I have written two small, simple modules to address limitations I found > in in Grub. > > 1. does simple arithmetic - nothing fancy. It's invoked by using > something like this: > > insmod arithmetic > arithmetic --set fred --min 2 -- max 10 "1" "+" "2"

Re: Contribution

2017-04-12 Thread Nicole
Thank you for your kind reply, Vladimir. I failed to find the probe command - I promise - I spent quite a few hours digging through the source. As for the $((...)) and $[...] - I'll look into it. It seems that my paltry contributions are not needed, after all. Nicole Date: Wed, 12 Apr 2017 1

Re: Contribution

2017-04-12 Thread Xen
Nicole schreef op 12-04-2017 18:51: Thank you for your kind reply, Vladimir. I failed to find the probe command - I promise - I spent quite a few hours digging through the source. As for the $((...)) and $[...] - I'll look into it. It seems that my paltry contributions are not needed, after all.

[RFC][PATCH] cmd: test: Add bitwise AND, document the feature

2017-04-12 Thread Brad Mouring
Currently, there is not a good way to control script flow based on bitwise values. This initially led to NI adding the ability to read a specific bit from a port-mapped register to control bootflow. Here, we add a more generic ability to test the bitwise AND of a value available to the grub script

Re: Contributions

2017-04-12 Thread Nicole
I've looked carefully at both the parser and the lexer. It's a long while since I've used either of these tools, but I can find no reference to anything that does arithmetic. The only instance of plus signs that I can find are in the regular expressions and in the C code. There appears to be no

Re: Contribution

2017-04-12 Thread Vladimir 'phcoder' Serbinenko
On Thu, Apr 13, 2017, 03:04 Xen wrote: > Nicole schreef op 12-04-2017 18:51: > > Thank you for your kind reply, Vladimir. I failed to find the probe > > command - I promise - I spent quite a few hours digging through the > > source. As for the $((...)) and $[...] - I'll look into it. > > > > It s

Re: Contributions

2017-04-12 Thread Vladimir 'phcoder' Serbinenko
On Thu, Apr 13, 2017, 04:25 Nicole wrote: > I've looked carefully at both the parser and the lexer. It's a long > while since I've used either of these tools, but I can find no reference > to anything that does arithmetic. The only instance of plus signs that I > can find are in the regular expre

Re: Contribution

2017-04-12 Thread Nicole
Vladimir, Thanks for your attention. The modules are there if you want them, if not, I'll use them locally, only. Nicole ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [RFC][PATCH] cmd: test: Add bitwise AND, document the feature

2017-04-12 Thread Andrei Borzenkov
12.04.2017 21:10, Brad Mouring пишет: > Currently, there is not a good way to control script flow based on > bitwise values. This initially led to NI adding the ability to read > a specific bit from a port-mapped register to control bootflow. > > Here, we add a more generic ability to test the bit