-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
grub2_pvgrub_image, grub: Refactor, add PVH support #374753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
ping @NixOS/xen-project I still have to iron out these errors from format checks, meanwhile, as this is also discussed on William's original PR, should we skip the arm/aarch64 architectures for now? I can't imagine if PvhGrub is useful here in Nixpkgs if we don't have the hypervisor itself working properly. (Maybe after #345217?) |
8f5c12c
to
6c05e79
Compare
6c05e79
to
8e039db
Compare
8e039db
to
fa0b0c0
Compare
fa0b0c0
to
50e652e
Compare
50e652e
to
cc14f35
Compare
e0953a3
to
24063a7
Compare
And then a final nitpicky point I want to get rid of: The entire thing has nothing to do with EFI, but the attrset I did a brief archaeology, it looks like it's there when being created, and maybe was derived from the main package of GRUB for reuse purposes. Changed to avoid further confusion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for picking this up.
13c65b3
to
1dd1ff0
Compare
No changes; just rebase and resolve conflicts. |
|
This enables the GRUB package to be built for the `xen_pvh` platform, which is needed to generate a corresponding GRUB image and boot PVH DomUs. Signed-off-by: Hongbo <hehongbo@mail.com> Co-authored-by: William Johansson <radar@radhuset.org>
This enables the GRUB package to be built for the `xen_pvh` platform, which is needed to generate a corresponding GRUB image and boot PVH DomUs. Also, modifications made to the original `grub2_pvgrub_image` package: - Use split phases and avoid overriding `buildCommand` during the build. - Remove logic that excludes `all_video.mod` (already ironed out by upstream). - Fix `lib.platforms` and remove platforms that cannot build. - Update the description. - Add maintainer information of the Xen Project team. Signed-off-by: Hongbo <hehongbo@mail.com> Reviewed-by: Fernando Rodrigues <alpha@sigmasquadron.net> Co-authored-by: William Johansson <radar@radhuset.org>
Rebase again to resolve conflicts, and I realized that I should fix platform support declarations/meta after considering the actual support matrix, which was #427180 and #428878 that had prompted me to do so.
It's mysterious that |
This one is revived from #121514 by @radhus, with the GRUB configuration files and memdisk stuff being reused from the
grub2_pvgrub_image
instead of duplicated, since the making of PvGrub and PvhGrub image shares the same logic.The result, is a new
grub2_pvhgrub_image
being provided along with the oldgrub2_pvgrub_image
, which can be used to boot PVH guests. And this, hopefully, provides an upgrade path for PV guests since PV is old, and has performance overhead for historical reasons.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.