xen: update domU config for pvgrub2

fix #22709

Recent pvgrub (from Grub built with “--with-platform=xen”) understands
the Grub2 configuration format. Grub legacy configuration (menu.lst) is
ignored.

Changed files
+1 -4
nixos
modules
virtualisation
+1 -4
nixos/modules/virtualisation/xen-domU.nix
···
{ config, pkgs, ... }:
{
-
# We're being booted using pv-grub, which means that we need to
-
# generate a GRUB 1 menu without actually installing GRUB.
-
boot.loader.grub.version = 1;
boot.loader.grub.device = "nodev";
-
boot.loader.grub.extraPerEntryConfig = "root (hd0)";
boot.initrd.kernelModules =
[ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront"
···
{ config, pkgs, ... }:
{
+
boot.loader.grub.version = 2;
boot.loader.grub.device = "nodev";
boot.initrd.kernelModules =
[ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront"