[SOLVED] How to edit boot

I have worked out that if I take some of the lines out of the boot sequence such as:
insmod gzio
insmod part_gpt
insmod ext2
...my machine boots more reliably.
By pressing e at boot and editing them out. So, I'd like to make those changes permanent. I looked at this page:
which seemed to suggest you can edit /etc/default/grub, but that doesn't contain any of those types of lines.
/boot/grub2/grub.cfg has such lines, but it says you can't edit them.
It does say:
It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
However, I can't work out what to do with these scripts.
It all seems ridiculously complicated for just wanting to edit out a few lines. Is there an easy way to accomplish this please?
Thanks!
insmod gzio
insmod part_gpt
insmod ext2
...my machine boots more reliably.
By pressing e at boot and editing them out. So, I'd like to make those changes permanent. I looked at this page:
which seemed to suggest you can edit /etc/default/grub, but that doesn't contain any of those types of lines.
/boot/grub2/grub.cfg has such lines, but it says you can't edit them.
It does say:
It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
However, I can't work out what to do with these scripts.
It all seems ridiculously complicated for just wanting to edit out a few lines. Is there an easy way to accomplish this please?
Thanks!