[Bug 1834095] Re: update-grub fails on zfs with root and boot datasets when using mawk

Launchpad Bug Tracker 1834095 at bugs.launchpad.net
Tue Jul 30 14:31:17 UTC 2019


This bug was fixed in the package grub2 - 2.04-1ubuntu3

---------------
grub2 (2.04-1ubuntu3) eoan; urgency=medium

  [ Mathieu Trudel-Lapierre ]
  * debian/patches/ubuntu-add-devicetree-command-support.patch: import patch
    into git-dpm: drop [PATCH] tag and add Patch-Name.

  [ Didier Roche ]
  * debian/patches/ubuntu-zfs-enhance-support.patch
    - Don't patch autoregenerated files.
    - rewrite generate MenuMeta implementation in shell (LP: #1834095)
      mawk doesn't support \s and other array features.
      + Change \s by their space or tab equivalent.
      + Rewrite the menumeta generation in pure shell, which is easier to
        debug, keeping globally the same algorithm
      + Support i18n in entry name generation.
      Co-authored with Jean-Baptiste.
    - Resplit all patches in debian/patches/*, so that we have upstreamable
      and non upstreamable parts separate. Also, any change in 10_linux patch
      will be reflected in 10_linux_zfs.
    - Always import pools (using force), as we don't mount them. Ensure also
      that we don't update the host cache, as we import all pools, and not
      only those attached to that system.

 -- Didier Roche <didrocks at ubuntu.com>  Mon, 29 Jul 2019 08:08:48 +0200

** Changed in: grub2 (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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/1834095

Title:
  update-grub fails on zfs with root and boot datasets when using mawk

Status in grub2 package in Ubuntu:
  Fix Released

Bug description:
  This issue was encountered on a virtual machine installation of Ubuntu
  19.10 running zfs.  After reloading several times from backup and
  placing the original version of grub2 on hold it was verified that
  upgrading to the newer version of grub caused update-grub to
  improperly detect the two zfs datasets, bpool (boot pool) and rpool
  (root pool).

  To recap:
  1) lsb_release -rd
  Description:    Ubuntu Eoan Ermine (development branch)
  Release:        19.10
  2) apt-cache policy grub-pc
  grub-pc:
    Installed: 2.02+dfsg1-12ubuntu2
    Candidate: 2.02+dfsg1-12ubuntu3 (version with issue in this report)
    Version table:
       2.02+dfsg1-12ubuntu3 500
          500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
   *** 2.02+dfsg1-12ubuntu2 100
          100 /var/lib/dpkg/status
  3) What I expected to happen: update-grub runs without error
  4) What happened instead: update-grub did not run correctly, resulting in unbootable system (only entries for memtest86+ in grub menu).

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



More information about the foundations-bugs mailing list