Instead of changing grub.cfg, what I've done on my computer was to change /etc/grub.d/10_linux (the source file when generating the grub.cfg):
Remove the lines that mentions recordfail:
$ diff /etc/grub.d/10_linux /etc/grub.d/.10_linux.bak 59a60,61 > recordfail=1 > save_env recordfail
I then run: $ sudo chmod u+w /boot/grub/grub.cfg $ sudo grub-mkconfig > /boot/grub/grub.cfg $ sudo chmod u-w /boot/grub/grub.cfg
This should stop update-grub from adding the lines back.
Instead of changing grub.cfg, what I've done on my computer was to change /etc/grub. d/10_linux (the source file when generating the grub.cfg):
Remove the lines that mentions recordfail:
$ diff /etc/grub. d/10_linux /etc/grub. d/.10_linux. bak
59a60,61
> recordfail=1
> save_env recordfail
I then run:
$ sudo chmod u+w /boot/grub/grub.cfg
$ sudo grub-mkconfig > /boot/grub/grub.cfg
$ sudo chmod u-w /boot/grub/grub.cfg
This should stop update-grub from adding the lines back.