On Mon, Sep 30, 2019 at 02:16:20AM +0000, ERIC MARCEAU wrote: > Hello, I was wondering if someone could incorporate the logic to > extract the hostname on each bootable partition and report those in > the appropriate menu options presented by grub. I have hard coded > this with simple shell logic based on a case statement matching UUID. > Attached are the files (10_linux, 30_os-prober) which I have tweaked > to achieve the UUID match and reporting. > > I also include a snapshot of what the menu looks like. I currently > use Grub 2. > > But I recognize that is not logic which is dynamic to report correctly > for anyone installing the distros, and that it would be better to > probe each of the detected partition to locate the > "${PartROOT}/etc/hostname" file to create the appropriate entries in > 10_linux and 30_os-prober scripts by the grub-install script > > I hope that someone will be able to implement the more generalized > logic some time in the near future.
In general idea looks interesting but code requires more work. First of all please use "git format-patch" and "git send-email" to send the patches. If we have your code in that form then we can suggest what should be changed/improved. Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel