The file /etc/grub.d/10_linux has been modified and broken in the process. The error message says:
/etc/grub.d/10_linux: 1: version_find_latest: not found
- The first line of the file should not be calling any commands, it starts with something like:
#! /bin/sh
set -e
- The library can't even be included yet because it's the first line
- The function and calls to it were removed in grub 2.12 (broken calls remain in 10_linux_zfs right now)
I suggest looking at your /etc/grub.d/10_linux and fixing up whatever is broken there.
The file /etc/grub. d/10_linux has been modified and broken in the process. The error message says:
/etc/grub. d/10_linux: 1: version_ find_latest: not found
- The first line of the file should not be calling any commands, it starts with something like:
#! /bin/sh
set -e
- The library can't even be included yet because it's the first line
- The function and calls to it were removed in grub 2.12 (broken calls remain in 10_linux_zfs right now)
I suggest looking at your /etc/grub. d/10_linux and fixing up whatever is broken there.