[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] Add new "version" command
From: |
Daniel Kiper |
Subject: |
Re: [PATCH 1/4] Add new "version" command |
Date: |
Thu, 5 Apr 2018 13:41:33 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Mar 28, 2018 at 04:50:25PM +0200, Hans de Goede wrote:
> Add a new "version" command which prints the grub PACKAGE_STRING +
> build time and date. This is useful to check if the expected version is
> running, for e.g. trouble-shooting purposes.
If you really need this I would consider setting some set of variables.
Currently GRUB2 provides grub_cpu and grub_platform. So, why not set e.g.
grub_version, grub_patchlevel, grub_sublevel and grub_extraversion (I have
taken the names from Linux kernel but we can use anything else which make
sense). This way you can get what you need using "set" command and scripts
may use variables to identify GRUB2 version. Ahhh... What about grub_commit
if it is available too?
Daniel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 1/4] Add new "version" command,
Daniel Kiper <=