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 {
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")
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.