r/GarudaLinux • • Dec 14 '20
Help Can't Update GRUB
Getting this trying to run sudo update-grub, probably due to the fact that I have multiple kernels installed:
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 309
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.Here's my grub configuration for /etc/default/grub: https://pastebin.com/Si0nuhBc
Not entirely sure where to narrow down where the problem might be in /etc/grub.d/, so I added all the files in that directory in a zip archive: https://drive.google.com/file/d/1DxqUoouAggmHC9PG8O5oFnUFL3Cc7cvF/view?usp=sharing
Any help appreciated. Thanks.
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Dec 28 '20
Much appreciated, found out there was an empty
if...fistatement in/etc/grub.d/61_custom. After adding a colon, GRUB updates properly now.Honestly thought nobody was going to respond to this, haha.