From 23f25246c8470866c2461a5bd8e6c720280a1996 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 19 Jan 2026 09:11:00 -0600 Subject: Fix grub-zfs-snap command substitution syntax error Remove backslash escape from grub-probe command substitution so it executes at config generation time instead of writing the literal string "$(grub-probe ...)" into grub.cfg. GRUB's scripting language doesn't support bash-style $() command substitution, causing syntax errors on boot. --- custom/grub-zfs-snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/grub-zfs-snap b/custom/grub-zfs-snap index f1eacb4..27f2c1f 100644 --- a/custom/grub-zfs-snap +++ b/custom/grub-zfs-snap @@ -103,7 +103,7 @@ SUBMENU_START insmod part_gpt insmod fat insmod zfs - search --no-floppy --fs-uuid --set=root \$(grub-probe --target=fs_uuid /boot) + search --no-floppy --fs-uuid --set=root $(grub-probe --target=fs_uuid /boot) echo 'Loading Linux kernel...' linux /${KERNEL_FILE} root=ZFS=${snapshot} ro spl.spl_hostid=0x${hostid} echo 'Loading initial ramdisk...' -- cgit v1.2.3