flatcar / Flatcar

Flatcar project repository for issue tracking, project documentation, etc.
https://www.flatcar.org/
Apache License 2.0
654 stars 27 forks source link

[RFE] Remove Xen Grub and Xen PV(H) support #1397

Open jepio opened 3 months ago

jepio commented 3 months ago

Current situation

The Flatcar kernel is compressed with ZSTD since commit:

commit 29f2903c8795d3269e1ffff507190c82e01267f2
Author: Kai Lüke <kailuke@microsoft.com>
Date:   Mon Jul 26 14:29:11 2021 +0200

    sys-kernel/coreos-modules: switch to gzip/zstd compression

When booting a Xen domU in pv/pvh mode pvgrub/pvgrub2/pygrub only support uncompressed or xz compressed kernels. This means the support for pv/pvh booting has been broken for at almost 3 years and no one noticed.

We can remove some files from /boot and make the kernel a bit smaller if we say goodbye to xen grub.

[ Please describe the current situation you would like to have improved ]

Impact

[ Please describe the impact the lack of the feature requested is creating ]

Ideal future situation

[ Please describe the future situation after the improvement was implemented ]

Implementation options

[ Optional: please provide one or more options for implementing the feature requested ]

Additional information

[ Please Add any information that does not fit into any of the above sections here ]

jepio commented 3 months ago

According to some comments - pvh grub can load zstd compressed kernels. just need to figure out if it can chainload.

jepio commented 2 months ago

It doesn't seem to support grub->grub chainloading but pygrub->grub works: https://github.com/flatcar/scripts/pull/1879