From 3dad33227f0b527569da022a3635d219d726b35d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 12 Feb 2017 20:53:49 +0100 Subject: [PATCH] xen: update domU config for pvgrub2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #22709 Recent pvgrub (from Grub built with “--with-platform=xen”) understands the Grub2 configuration format. Grub legacy configuration (menu.lst) is ignored. --- nixos/modules/virtualisation/xen-domU.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nixos/modules/virtualisation/xen-domU.nix b/nixos/modules/virtualisation/xen-domU.nix index 8dd0d1dbfd2c..b46002c10b54 100644 --- a/nixos/modules/virtualisation/xen-domU.nix +++ b/nixos/modules/virtualisation/xen-domU.nix @@ -3,11 +3,8 @@ { 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.version = 2; boot.loader.grub.device = "nodev"; - boot.loader.grub.extraPerEntryConfig = "root (hd0)"; boot.initrd.kernelModules = [ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront"