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.
This commit is contained in:
Philipp Gesang 2017-02-12 20:53:49 +01:00
parent 2dba30af72
commit 3dad33227f
No known key found for this signature in database
GPG Key ID: 6069D620A0E75CF6

View File

@ -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"