grub-probe 2.12~rc1-4ubuntu1 fails with zfs root

Bug #2031558 reported by satmandu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

While updating to mantic & having zfs root installed, I see this:
/usr/sbin/grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_3oz2ph'.
r

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: grub-common 2.12~rc1-4ubuntu1
Uname: Linux 6.5.0-rc6 x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Aug 16 13:23:47 2023
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, user)
 SHELL=/bin/bash
 TERM=tmux-256color
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
satmandu (satadru-umich) wrote :
Revision history for this message
satmandu (satadru-umich) wrote :

This was in part from me not having updated glibc to the 2.38 in mantic-proposed.

Eventually I did get this error: /etc/grub.d/10_linux_zfs: 425: version_find_latest: not found
That was resolved by replacing line 425:

        #linux=$(version_find_latest ${list_basename})
        linux=$(echo ${list_basename} | tr ' ' '\n' | sort -V | head -1 | cat)

Revision history for this message
satmandu (satadru-umich) wrote :

Turns out that it needs to be:

        #linux=$(version_find_latest ${list_basename})
        linux=$(echo ${list_basename} | tr ' ' '\n' | sort -Vr | head -1 | cat)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.