Grub update fails on zfs root drives after software install..

Bug #1870810 reported by Jeff Hoffman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
High
Jean-Baptiste Lallement
Focal
High
Jean-Baptiste Lallement

Bug Description

My grub.cfg file first menu entry works. Used to refer to specific hard drives which will not work with ZFS root devices.

It also loops and adds another "}" at line 183.

Memtest again refers to /dev/sd<x> which I don't think will work with ZFS filesystems?

See the two files attached.

grub.cfg I modified to make it work to see first menu entry or linux*88 menu entry.

The second one is the generated grub.cfg.new which is bad.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-release-upgrader-core 1:19.10.15.4
ProcVersionSignature: Ubuntu 5.3.0-45.37-generic 5.3.18
Uname: Linux 5.3.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8.8
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 4 10:39:58 2020
InstallationDate: Installed on 2017-05-20 (1049 days ago)
InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to eoan on 2020-03-30 (4 days ago)
VarLogDistupgradeTermlog:

Revision history for this message
Jeff Hoffman (jcmj) wrote :
affects: ubuntu-release-upgrader (Ubuntu) → grub2 (Ubuntu)
Changed in grub2 (Ubuntu):
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Jean-Baptiste Lallement (jibel)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

grub.new untar-ed from attachments.

Changed in grub2 (Ubuntu Focal):
status: Confirmed → Triaged
Changed in grub2 (Ubuntu Focal):
milestone: none → ubuntu-20.04
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could you provide the output of the following commands:
lsblk -f
zfs list
zfs list -t snapshot

Thanks

Changed in grub2 (Ubuntu Focal):
status: Triaged → Incomplete
Revision history for this message
Jeff Hoffman (jcmj) wrote :

See attached file

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for the logs.

The curly brace error should be fixed now. Now we must understand why it doesn't find the kernels.

- Could you please save /etc/grub.d/10_linux_zfs somewhere outside of /etc/grub.d/
- Replace /etc/grub.d/10_linux_zfs by the file in attachment. It adds set -x to watch its execution and the content of intermediary files to generate the menu.
- Make it executable:
   chmod +x /etc/grub.d/10_linux_zfs
- Then run update-grub:
   sudo update-grub 2>/tmp/update-grub.log

Verify that the log contains something and attach it to this report.

Revision history for this message
Jeff Hoffman (jcmj) wrote :

Output after update

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

Other bug subscribers