diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-19 09:11:00 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-19 09:11:00 -0600 |
| commit | 23f25246c8470866c2461a5bd8e6c720280a1996 (patch) | |
| tree | aa9787dbec1b15cffc9a149e94f32bf2f3fe3175 /custom | |
| parent | a8c865a6712304d4921b6394e3cc5b0ed601fbbc (diff) | |
| download | archangel-23f25246c8470866c2461a5bd8e6c720280a1996.tar.gz archangel-23f25246c8470866c2461a5bd8e6c720280a1996.zip | |
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.
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/grub-zfs-snap | 2 |
1 files changed, 1 insertions, 1 deletions
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...' |
