Summary: | app-emulation/grub-xen-host fails to recognize ZSTD-compressed domU kernels | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jason Cooper <jason+gentoobugs> |
Component: | Current packages | Assignee: | Gentoo Xen Devs <xen> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | flow, jonas.licht, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=784599 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jason Cooper
2020-11-09 15:11:14 UTC
Also, one of the other fruits of my search / debugging. GRUB already has code for ZSTD, but it seems to only be wired up for btrfs zstd-compressed file systems. AFAICT, the grub codebase isn't aware that ZSTD can be used in the kernel. Just to sum all this up: I think the bug is either in the `grub-xen-host` package in that it appears to build a grub boot loader that inspects the kernel to determine if it's a valid kernel. Which, imho, it shouldn't do. However, the problem **may** be in the grub code itself. Regardless, it's silly and should be happening. The release notes of xen 4.15 says: "To enable the new support for zstd-compressed guest kernels, zstd-devel needs to be installed. If it isn't, the support for zstd is disabled at build-time." [0] Maybe this fixes the problem? I'm currently not sure if the gentoo Xen is build with zstd support. [0] https://wiki.xenproject.org/wiki/Xen_Project_4.15_Release_Notes Hm, the update didn't help for me. On the Xen devel Mailinglist, they say it should work with grub and type Xen domU type PVH [0]. So zstd compressed Kernel with Type PVH works for me. Currently app-emulation/grub-xen-host has no support for pvh, PR is open [1]. [0] https://lists.xenproject.org/archives/html/xen-devel/2020-11/msg01073.html [1] https://github.com/gentoo/gentoo/pull/13496 Related gentoo-dist kernel bug that disabled ZSTD compression: bug #784599. |