On Wed, Apr 15, 2020 at 02:04:36PM +0200, Flavio Suligoi wrote: > Sometimes, writing a custom grub.cfg configuration file, > especially with embedded systems, it is indispensable > to know the version of the running GRUB. > This is essential for every automatic sw update procedure.
You can't actually assume that the grub binary on the running system is the same version as the one currently booting the system. It probably tends to be if the distribution takes care to auto upgrade it when a new grub is installed, but it doesn't always happen. Of course in the case of a distribution, it's package management would already have that information. I am not saying adding this is a bad idea, I just don't believe it does anything useful. I just believe it is trying to solve a problem that doesn't actually exist. -- Len Sorensen _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
