How can I remove entries from grub.cfg permanently?

Hi!

How can I remove entries from grub.cfg permanently?

I deleted some entries that I don't wanna have in grub.cfg but even if I run sudo update-grub the entries still there.

I want have permanently remove these entries in the grub.cfg.

insmod efi_gop
insmod efi_uga

--hint-efi=hd0,gpt2

I removed UEFI and I don't need these entries.

So, what to do?

I've done it now. Edited in

/etc/grub.d/00_header

Removed:

insmod efi_gop
insmod efi_uga

But "--hint-efi=hd0,gpt2" is still there in grub.cfg :frowning:

Anybody knows how I can remove the entry in "/boot/grub/grub.cfg" permanently?

I use Grub_Editor but I can't find the line "--hint-efi=" in the files of "/etc/grub.d"