grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Nicole <nicole.king464@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Contribution
Date: Wed, 12 Apr 2017 17:51:45 +0100	[thread overview]
Message-ID: <b69464f7-b8a3-2b33-735d-8e99a5c9043b@gmail.com> (raw)
In-Reply-To: <mailman.37.1492012806.25481.grub-devel@gnu.org>

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 10:41:19 +0000
> From: "Vladimir 'phcoder' Serbinenko" <phcoder@gmail.com>
> To: The development of GNU GRUB <grub-devel@gnu.org>
> Subject: Re: Contribution
> Message-ID:
> 	<CAEaD8JNP896sLDK90ERqZT6i38WD1g8Wy1DwrnoneKQ2zka5Vw@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Wed, Apr 12, 2017, 20:37 Nicole <nicole.king464@gmail.com> 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"
>>
>> the operators supported are unary -,!; binary +,-,/,*,%,<,<=,<.<=,!=,==
>> --set works in the usual way. If the result is greater than --max, the
>> --min value is returned and vice versa; this useful for cycling round a
>> group of partitions in a round-robin fashion
>>
> Can you have a look if we can have bash syntax $((...)) and $[...] instead?
> It's more compact and nicer.
>
>>
>> 2. diskinfo.mod introduces two commands: disklabel, diskuuid which
>> return the label and uuid of the specified disk partition. This is
>> useful where, having decided which partition, amongst several, to boot,
>> you can fill in the appropriate value in the "root=UUID=" or
>> "root=label=" Linux kernel parameter.
>>
> Have a look at probe command. Does it cover your usecase?
>
>>
>> I looked for details on how to submit new modules, but failed to find
>> anything. How do I go about this?
>>
> Just send patches here.
>
>>
>> Nicole
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>


       reply	other threads:[~2017-04-12 16:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.37.1492012806.25481.grub-devel@gnu.org>
2017-04-12 16:51 ` Nicole [this message]
2017-04-12 17:03   ` Contribution Xen
2017-04-12 20:06     ` Contribution Vladimir 'phcoder' Serbinenko
2017-04-12 18:25 ` Contributions Nicole
2017-04-12 20:08   ` Contributions Vladimir 'phcoder' Serbinenko
     [not found] <mailman.65479.1492027745.22739.grub-devel@gnu.org>
2017-04-12 20:57 ` Contribution Nicole
     [not found] <mailman.65311.1491983735.22739.grub-devel@gnu.org>
2017-04-12 10:36 ` Contribution Nicole
2017-04-12 10:41   ` Contribution Vladimir 'phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b69464f7-b8a3-2b33-735d-8e99a5c9043b@gmail.com \
    --to=nicole.king464@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).