Problem identified. The variable intrd_device contains a \r at the end of the variable. When concatenating the variable with the subsequent variables, it effectively truncates the subsequent data in the echo return.
Preceding the if statement, I inserted the following: # remove the trailing \r from the variable initrd_device=$(echo ${initrd_device} | tr -d '\r') This removed the trailing \r, allowing the full set of data to be returned. I tested this fix on my own system by modifying the 10_linux_zfs script in /etc/grub.d. The grub.cfg is now successfully generated and apt/dpkg are able to perform an update-grub. 10_linux_zfs attached. ** Attachment added: "10_linux_zfs" https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1848856/+attachment/5299058/+files/10_linux_zfs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848856 Title: Upgrade from 19.04 to 19.10 with zfs on root fails with grub syntax error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1848856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs