Since some days ago, when I update something, and the GRUB creates a new config for adding the new snapshot, I get syntax errors. I didn't edit any dotfile. Does not say which dotfile is, only says
/usr/bin/grub-probe: warning: unknown device type nvme0n1. error: syntax error. error: Incorrect command. error: syntax error. Syntax error at line 238 Syntax errors are detected in generated GRUB config file. Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with /boot/grub/grub.cfg.new file attached.
I tried the option of Repair GRUB config file on Garuda's boot repair tool, but I got the same as above. I attach all files in
/etc/grub.d/, and in
/etc/grub.d/proxifiedScripts with more of 238 lines.
Thanks for helping me!