grub in xenial fails to read pc-linux 4.15 kernel snap

Bug #1820898 reported by Michael Vogt on 2019-03-19
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned
Xenial
High
Colin Watson

Bug Description

The grub version in xenial fails to read the pc-kernel 4.15 kernel snap.

[Test Case] To reproduce (thanks to Colin for the grub-fstest hint):

$ snap download pc-kernel --channel 18
$ grub-fstest pc-kernel_192.snap crc /vmlinuz

This fails with the xenial grub with:
grub-fstest: error: read error at offset 8096256: invalid xz chunk.

but it should work (it works correctly with the grub2 from bionic and later).

Colin pointed to https://git.savannah.gnu.org/cgit/grub.git/commit/?id=951306c5094d2bfb46d5baedfde84a2015c4a3fa which may fix the issue.

[Regression Potential] The fix is in GRUB's squash4 module, so only workloads that involve reading squashfses could be affected.

Michael Vogt (mvo) on 2019-03-19
Changed in grub2 (Ubuntu):
status: New → Fix Released
description: updated
Colin Watson (cjwatson) on 2019-03-19
Changed in grub2 (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson) on 2019-03-20
description: updated
Changed in grub2 (Ubuntu Xenial):
status: Triaged → In Progress

Hello Michael, or anyone else affected,

Accepted grub2 into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2/2.02~beta2-36ubuntu3.21 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in grub2 (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-xenial
Brian Murray (brian-murray) wrote :

Hello Michael, or anyone else affected,

Accepted grub2-signed into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2-signed/1.66.21 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Verification-done on xenial:

ubuntu@profound-donkey:~$ snap download pc-kernel --channel 18
Fetching snap "pc-kernel"
Fetching assertions for "pc-kernel"
Install the snap with:
   snap ack pc-kernel_192.assert
   snap install pc-kernel_192.snap
ubuntu@profound-donkey:~$ grub-fstest pc-kernel_192.snap crc /vmlinuz
441609b6
ubuntu@profound-donkey:~$ dpkg -l grub\* | grep ii
ii grub-common 2.02~beta2-36ubuntu3.21 amd64 GRand Unified Bootloader (common files)
ii grub-efi-amd64 2.02~beta2-36ubuntu3.21 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version)
ii grub-efi-amd64-bin 2.02~beta2-36ubuntu3.21 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 binaries)
ii grub-efi-amd64-signed 1.66.21+2.02~beta2-36ubuntu3.21 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
ii grub2-common 2.02~beta2-36ubuntu3.21 amd64 GRand Unified Bootloader (common files for version 2)

grub behaves as expected given the grub-fstest test case provided.

tags: added: verification-done-xenial
removed: verification-needed verification-needed-xenial
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.02~beta2-36ubuntu3.21

---------------
grub2 (2.02~beta2-36ubuntu3.21) xenial; urgency=medium

  * debian/patches/squash4-fix-fragments-and-sparse-files.patch: Cherry-pick
    upstream patch to fix handling of fragments and sparse files in squashfs
    filesystems (LP: #1820898).

 -- Colin Watson <email address hidden> Wed, 20 Mar 2019 00:31:55 +0000

Changed in grub2 (Ubuntu Xenial):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for grub2 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

Other bug subscribers