fbe6d23624
Unfortunately, somewhere between 16.09 and 17.03, paravirtualized
instances stopped working. They hang at the pv-grub prompt
("grubdom>"). I tried reverting to a 4.4 kernel, reverting kernel
compression from xz to bzip2 (even though pv-grub is supposed to
support xz), and reverting the only change to initrd generation
(5a8147479e
). Nothing worked so I'm
giving up.
22 lines
412 B
Nix
22 lines
412 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
options = {
|
|
ec2 = {
|
|
hvm = lib.mkOption {
|
|
default = false;
|
|
internal = true;
|
|
description = ''
|
|
Whether the EC2 instance is a HVM instance.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
config = {
|
|
assertions = [
|
|
{ assertion = config.ec2.hvm;
|
|
message = "Paravirtualized EC2 instances are no longer supported.";
|
|
}
|
|
];
|
|
};
|
|
}
|