After upgrading Kubuntu, I decided to clean up my boot menu. I had been using Grub Customizer just to rename entries, but all I really wanted was this:

Windows first and selected by default, and Kubuntu pointing to /boot/vmlinuz and /boot/initrd.img. On my system, those are symbolic links maintained by the kernel packages, so the entry doesn’t need to reference a specific kernel version.
Removing Grub Customizer turned out to be only part of the job. It had left scripts and custom entries behind, and regenerating the menu brought back duplicate entries. After cleaning those up, I got the menu working the way I wanted.
Then I turned the setup into a reusable Bash script!


