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 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel