Syntax errors are detected in generated grub-btrfs.cfg file

inxi -Faz
System:    Kernel: 5.15.4-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=1409d596-84e3-4768-b0e5-996dc20bb2a5 rw
           [email protected] quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
           systemd.unified_cgroup_hierarchy=1 loglevel=3
           Desktop: LXQt 1.0.0 tk: Qt 5.15.2 info: cairo-dock, lxqt-panel wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux
           base: Arch Linux
Machine:   Type: Desktop Mobo: INTEL model: HM65DESK serial: <superuser required> UEFI: American Megatrends v: 4.6.5
           date: 02/23/2019
CPU:       Info: Dual Core model: Intel Core i7-2620M bits: 64 type: MT MCP arch: Sandy Bridge family: 6 model-id: 2A (42)
           stepping: 7 microcode: 2F cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
           flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 21550
           Speed: 1091 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 2559 2: 3046 3: 3225 4: 3081
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported
           Type: l1tf mitigation: PTE Inversion
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable
           Type: meltdown mitigation: PTI
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: NVIDIA GM107 [GeForce GTX 750] driver: nvidia v: 495.44 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
           chip-ID: 10de:1381 class-ID: 0300
           Display: x11 server: X.Org compositor: kwin_x11 driver: loaded: nvidia display-ID: :0 screens: 1
           Screen-1: 0 s-res: 1360x768 s-dpi: 90 s-size: 384x300mm (15.1x11.8") s-diag: 487mm (19.2")
           Monitor-1: HDMI-0 res: 1360x768 hz: 60 dpi: 49 size: 708x398mm (27.9x15.7") diag: 812mm (32")
           OpenGL: renderer: NVIDIA GeForce GTX 750/PCIe/SSE2 v: 4.6.0 NVIDIA 495.44 direct render: Yes
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
           chip-ID: 8086:1c20 class-ID: 0403
           Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX] driver: snd_hda_intel v: kernel bus-ID: 01:00.1
           chip-ID: 10de:0fbc class-ID: 0403
           Sound Server-1: ALSA v: k5.15.4-zen1-1-zen running: yes
           Sound Server-2: sndio v: N/A running: no
           Sound Server-3: JACK v: 1.9.19 running: no
           Sound Server-4: PulseAudio v: 15.0 running: yes
           Sound Server-5: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel port: d000 bus-ID: 03:00.0
           chip-ID: 10ec:8168 class-ID: 0200
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    Local Storage: total: 2.78 TiB used: 712.95 GiB (25.0%)
           SMART Message: Required tool smartctl not installed. Check --recommends
           ID-1: /dev/sda maj-min: 8:0 model: SATA SSD size: 55.9 GiB block-size: physical: 512 B logical: 512 B
           speed: 3.0 Gb/s type: SSD serial: <filter> rev: Sb10 scheme: GPT
           ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST3000NM0053 size: 2.73 TiB block-size: physical: 512 B
           logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: G00A scheme: GPT
Partition: ID-1: / raw-size: 389.6 GiB size: 389.6 GiB (100.00%) used: 318.92 GiB (81.9%) fs: btrfs dev: /dev/sdb4
           maj-min: 8:20
           ID-2: /boot/efi raw-size: 5.59 GiB size: 5.58 GiB (99.80%) used: 237.7 MiB (4.2%) fs: vfat dev: /dev/sda2
           maj-min: 8:2
           ID-3: /home raw-size: 389.6 GiB size: 389.6 GiB (100.00%) used: 318.92 GiB (81.9%) fs: btrfs dev: /dev/sdb4
           maj-min: 8:20
           ID-4: /var/log raw-size: 389.6 GiB size: 389.6 GiB (100.00%) used: 318.92 GiB (81.9%) fs: btrfs dev: /dev/sdb4
           maj-min: 8:20
           ID-5: /var/tmp raw-size: 389.6 GiB size: 389.6 GiB (100.00%) used: 318.92 GiB (81.9%) fs: btrfs dev: /dev/sdb4
           maj-min: 8:20
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
           ID-1: swap-1 type: zram size: 3.79 GiB used: 314.5 MiB (8.1%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 35 C
           Fan Speeds (RPM): N/A gpu: nvidia fan: 33%
Info:      Processes: 255 Uptime: 56m wakeups: 0 Memory: 3.79 GiB used: 2.52 GiB (66.6%) Init: systemd v: 249 tool: systemctl
           Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1877 lib: 530 flatpak: 0 Shell: fish v: 3.3.1
           running-in: qterminal inxi: 3.3.09

Alright, the title says it all, I have no idea what it means or how to solve, nor was I able to find anything related on the forum. It happened while doing the update command, and even tho it showed this error, the command ran through untill the end at "System updated!"
The specific error I get:

error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 942
Syntax errors are detected in generated grub-btrfs.cfg file.
If you think an error has occurred , please file a bug report at " "

If, as I was, you are wondering what "line 942" reffers to, I suppose it's to the line below in which I specified it's number (to be clear, yes, the number I put only here at the forum just to easily find it, in the real doc I didn't even lay my finger outside of read-only mode)

menuentry 'vmlinuz-linux-zen & initramfs-linux-zen-fallback.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-1409d596-84e3-4768-b0e5-996dc20bb2a5' {
        if [ x$feature_all_video_module = xy ]; then
942 >   insmod all_video
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  1409d596-84e3-4768-b0e5-996dc20bb2a5
            search --no-floppy --fs-uuid  --set=root 1409d596-84e3-4768-b0e5-996dc20bb2a5
        echo 'Loading Snapshot: 2021-11-16 11:00:04 timeshift-btrfs/snapshots/2021-11-16_11-00-04/@'
        echo 'Loading Kernel: vmlinuz-linux-zen ...'
        linux "/timeshift-btrfs/snapshots/2021-11-16_11-00-04/@/boot/vmlinuz-linux-zen" root=UUID=1409d596-84e3-4768-b0e5-996dc20bb2a5  quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1 loglevel=3 rootflags=defaults,noatime,space_cache,autodefrag,compress=zstd,subvol="timeshift-btrfs/snapshots/2021-11-16_11-00-04/@"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-zen-fallback.img ...'
        initrd "/timeshift-btrfs/snapshots/2021-11-16_11-00-04/@/boot/intel-ucode.img" "/timeshift-btrfs/snapshots/2021-11-16_11-00-04/@/boot/initramfs-linux-zen-fallback.img"

Also, it might be related or not, but I noticed Deactivate/Terminate Plymouth Boot Screen both failed, and, once again, despite that I was able to boot and login as if nothing happened.

systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION                                 
● pacman-files.service loaded failed failed pacman files database update
● plymouth-deactivate.service loaded failed failed Deactivate Plymouth Boot Screen
● plymouth-quit.service loaded failed failed Terminate Plymouth Boot Screen
● shadow.service loaded failed failed Verify integrity of password and group files

As always, thanks for all and any response!

Have you installed and used grub-customizer, as this program can often result in creating issues.

There are actually quite a few other similar topics in our, and other forums if you dig a little deeper:

Syntax errors are detected in generated grub-btrfs.cfg file. - Google Search..

No, I actually don't mess with important parts of the system as I am very very ignorant about it and afraid of messing up, the most I do is download some themes for DE and bloated apps I never use xD

But thanks for the tip, I'll see if I can find any related issues on other Linux forums.

1 Like

There are actually quite a few hits returned on the Garuda forum from those search terms, so I would start with the related posts from the Garuda forum.

I would also search the systemctl errors you posted as well.

Good luck to you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.