#1001256 Rearrange packages (break PyGRUB off, perhaps others too)

Package:
src:xen
Source:
xen
Submitter:
Elliott Mitchell
Date:
2022-02-28 01:57:04 UTC
Severity:
wishlist
#1001256#5
Date:
2021-12-07 02:13:40 UTC
From:
To:
From experimentation there is minimal or no version association needed
for the initial stage bootloaders.  The Xen 4.11 version of PyGRUB was
perfectly able to load kernel/initrd for Xen 4.14.  It really would be
better to discourage use of PyGRUB with its security implications.
Additionally there is at least one additional bootloader besides PvGRUB
available (Tianocore).

Might be nice to only install xenstored or oxenstored.  I suspect most
installations will only need one.

#1001256#10
Date:
2022-02-28 01:56:16 UTC
From:
To:
I doubt this set is an adequate job, but hopefully they function as rough
proof of concept patches.

PyGRUB is mostly independent of the rest of Xen.  I've confirmed the
PyGRUB build associated with xen-utils-4.11 works fine for loading Linux
with Xen 4.14 or 4.16.  Mostly PyGRUB is dependent on filesystem support,
so as long as ext4 remains popular and doesn't grow incompatible
features, older versions of PyGRUB will continue functioning.

On x86 PvGRUB is vastly superior to PyGRUB in nearly every way.
Presently though PvGRUB is unavailable for ARM(64).

Using EDK2 as a bootloader functions quite well on ARM(64) and work is
under way to have that functioning on x86.  See bug #978595.  This
successfully boots FreeBSD on Xen/ARM (work in-progress).



As such create a xen-domu-bootloader virtual package and make the
resultant xen-pygrub package provide this.  Ideally grub-xen-host would
start providing this.

I suspect xen-pygrub may need to be marked as "Replaces: xen-utils-*" for
some set of versions.  This would be to ensure PyGRUB isn't lost during
upgrade.