On Sun, 9 Dec 2018 07:56:29 +0530, Amish via arch-general wrote:
Thats because you have assumed that people will install only Linux. And that too plain Linux.
Chainloading e.g. FreeBSD, Windows or whatsoever is even simpler.
And that too no grub modules. No fancy stuff.
That too no failsafe stuff. Or LTS stuff. etc. etc.
You could add all of this, but you only need to do it one time, not after each upgrade of a kernel.
Now if you have to hand write grub.cfg considering all of the above, I dont think its as easy as 4 lines above.
It still is, just a few additional lines are needed.
And I bet if you recommend above 4 lines to a normal user, he is going to make spelling mistake even in above 4 lines that you have given.
If this happens to me, I simply correct the spelling mistake.
Or forget starting or ending braces some where or forget new line.
And then have a broken system in the end.
This doesn't happen often and if it happens, it could be easily fixed with an editor.
I am not saying dont write grub.conf on your own. I am saying that recommend tools first because tools are well tested and probes things much better.
If above 4 lines sufficed everyone and all cases - then yes its easy. But from user manual point of view you can not recommend hand written grub first.
You don't mention all the failures of that os-prober and the other thingies. Some people don't want any fancy stuff at all, but a menu order that fits to their needs, so they would have to edit the configs for all those auto-crap. On my machine I've seen auto-generated menus with entries for installs that don't exist, after waiting several minutes to generate a grub.cfg, that could be edited manually in a few seconds, without this kind of mistakes.