cryptsetup autopkgtest fails with zstd compressed kernel modules

Bug #2035120 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Fix Released
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

cryptsetup is using a custom script to create an initramfs and include kernel modules, however it is encoding *.ko and now that we have zstd compressed modules in the kernel it fails to include the proper modules in the initramfs (since the modules are now called *.ko.zst).

[Test case]

Run cryptsetup autopkgtest.

[Fix]

Workaround this issue by unpacking all modules in a temporary extract directory, so that debian/tests/utils/mkinitramfs can support either compressed and uncompressed modules.

[Regression potential]

This change fixes the autopkgtest test case, it doesn't touch cryptsetup at all, so the only regressions that we can experience are in the autopkgtest.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to support kernels either with zstd compressed kernel modules or uncompressed modules when running the autopkgtest test case.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "cryptsetup-support-zstd-kernel-modules.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Paride Legovini (paride) wrote :

Sponsored by xnox already. Removing ubuntu-sponsors subscription.

Andrea Righi (arighi)
Changed in cryptsetup (Ubuntu Mantic):
status: New → Fix Released
Revision history for this message
TJ (tj) wrote :

This also affects LTS releases with HWE, and/or locally built kernels. I hit it today building v6.8.0 with CONFIG_MODULES_COMPRESS_XZ

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.