I absolutely detest subfolders in grub and I want to get rid of them permanently and for ever. At the moment I can get rid of them, but only temporarily, by editing /boot/grub/grub.cfg like so:
I only need to comment out line #140:
- Code: Select all
}
#submenu "Previous Linux versions" {
menuentry 'Linux Mint 14 Cinnamon 64-bit, 3.5.0-21-generic (/dev/sda6)' --class linuxmint --class gnu-linux --class gnu --class os {
Now grub.cfg is produced by the code in /etc/grub.d/10_linux and thus my edits are removed every time I update a kernel or run update-grub. This is what I would like to prevent happening, but the code in 10_linux is not something I understand, so I wonder if anyone else could tell me how to alter it to permanently rid myself of grub subfolders.
BTW I have already tried commenting out lines 256-266 in 10_linux (which is the bit that mentions subfolders) but when I ran update-grub I got:
- Code: Select all
update-grub
Generating grub.cfg ...
/etc/grub.d/10_linux: 257: /etc/grub.d/10_linux: Syntax error: end of file unexpected (expecting "done")
When I typed an indented 'done' at the end of the file update grub just went into some kind of loop and the command had to be force closed. So as you can see, I have tried to work it out myself, but I can't get there.
Incidentally I would also like to be able to do this in Ubuntu as well, but that has a different 10_linux file, and produces a different grub.cfg which is even more annoying to deal with.
Please don't suggest grub-customizer as a solution to this, I consider that program to be faulty at the moment and don't want to use it.





