On 2021-06-24 at 10:32, Felix Miata wrote: > mick crane composed on 2021-06-24 14:51 (UTC+0100): > >> I was dual booting but got another PC so I can have windows and debain >> at the same time. Just for tidiness of booting I'd have liked to comment >> out the submenu entry in /boot/grub/grub.cfg for windows just in case I >> wanted to put it back but not allowed. >> Physically removing the windows disk and "grub-mkconfig" and/or >> "update-grub" sorts itself out but is there any way to do this manually >> as used to be the case ? > > > You can use any of: > /etc/grub.d/40_custom > /etc/grub.d/41_custom > /boot/grub/custom.cfg > or 40_custom and/or 41_custom copied e.g. to > /etc/grub.d/06_custom or /etc/grub.d/07_custom.
From looking at those files, it seems as if they can be used to *add* entries manually, and your example matches up with doing that - but can they be used to modify (or remove) entries which would otherwise appear, as seems to be the desire in this instance? I'm not seeing an obvious way how, if so. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
signature.asc
Description: OpenPGP digital signature