[Bug 1870810] Re: Grub update fails on zfs root drives after software install..

Jean-Baptiste Lallement jean-baptiste.lallement at ubuntu.com
Tue Apr 7 09:12:40 UTC 2020


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.


** Attachment added: "10_linux_zfs"
   https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1870810/+attachment/5348525/+files/10_linux_zfs

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1870810

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

Status in grub2 package in Ubuntu:
  Incomplete
Status in grub2 source package in Focal:
  Incomplete

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:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1870810/+subscriptions



More information about the foundations-bugs mailing list