Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cyFdt-0001gI-TJ for mharc-grub-devel@gnu.org; Wed, 12 Apr 2017 06:36:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyFds-0001g8-8b for grub-devel@gnu.org; Wed, 12 Apr 2017 06:36:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyFdo-0003mu-Ca for grub-devel@gnu.org; Wed, 12 Apr 2017 06:36:52 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:35194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyFdo-0003m0-60 for grub-devel@gnu.org; Wed, 12 Apr 2017 06:36:48 -0400 Received: by mail-wm0-x233.google.com with SMTP id w64so84272061wma.0 for ; Wed, 12 Apr 2017 03:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=p9dyMH+hDbZmmJW7eBo9C6W1H69KvSYrKyjVwSvDRSI=; b=n555eOQgg6Jsc0k5c5cdacL1Zlt/mN+kypkjkFV1lC2MN1CpDyX7KT59WSg8+piOaS bkXFOKfG2jcJNthZ7HNDyfyC3xSWlUR9Bw3VyIorE/z7avq0PXzIVkQ5awM9gAPWjOcO 9EwVZtCW4362ZOkiLDVNNQi0NtsNAp/vbACKuayMuMLd8qUHDzrB8cyU06LAHKBlC+xZ nigooepUc6tEDPrP+e+UR7CXdGqoNp//WjD35XlxgAMLO2/20zHopz4RmQTmzEqa8Gha 6Ory9BH9Y3JxJp3x80VJgIpDE4MDUPzYLuWpQ0Lxc6EbpOC0Rs5d4BDfzDaWURGr+8DQ wQSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=p9dyMH+hDbZmmJW7eBo9C6W1H69KvSYrKyjVwSvDRSI=; b=Lv5p9+K0nkjzbWWkVUN0MHvTqXmEMqsL1daLwG17ZPKc9Jk7hx7MHPlv0gw97bZwFr jQ/1iEtJ+KcvERsid3pYfi0fd8QzXoN8ri//QGII3v6R5ZL0gmy0wmABsL39DgoysTEK ly2L6R/IMo8Zi7Y4/lVsmmX0ITD3whVFu4SY4pQZmC/z3dO10LRQuoJv63/MmEATK/7T ZsRAEXyDXVpGHEjAfj2TE9oK0/VlKuEgzwyyocMKBpCZkq/8Dq9oF7XvA8CwIDTdMy4c 5ftJZ1rQxr3kcSeNGoFqwV+WGV01dY4SlVunATgs+3dr49imIB+rY6vu77Gms0F/mJY0 KtqQ== X-Gm-Message-State: AN3rC/6XhPs2XR2Uh6Qo98/t+bdfZ3srY/dnL4gcaQE83vRTPjx/nUfwgsRBYGrnGrPgKA== X-Received: by 10.28.197.12 with SMTP id v12mr2065996wmf.82.1491993404980; Wed, 12 Apr 2017 03:36:44 -0700 (PDT) Received: from [192.168.254.200] (82-69-89-171.dsl.in-addr.zen.co.uk. [82.69.89.171]) by smtp.googlemail.com with ESMTPSA id y190sm6044996wmy.15.2017.04.12.03.36.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Apr 2017 03:36:44 -0700 (PDT) Subject: Contribution To: grub-devel@gnu.org References: From: Nicole Message-ID: Date: Wed, 12 Apr 2017 11:36:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 10:36:53 -0000 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 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. I looked for details on how to submit new modules, but failed to find anything. How do I go about this? Nicole