summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-options.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-03 17:03:49 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-03 17:46:34 +0200
commitfbe6d23624b0b62cb5754d37ab81007cd4c035ab (patch)
treef3e673664e7c297ea31f52ed0a8626ef863de1d3 /nixos/modules/virtualisation/amazon-options.nix
parente6faf2a4e6c9d079e9c04dc88988479a73a54b34 (diff)
downloadnixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.tar
nixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.tar.gz
nixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.tar.bz2
nixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.tar.lz
nixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.tar.xz
nixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.tar.zst
nixpkgs-fbe6d23624b0b62cb5754d37ab81007cd4c035ab.zip
EC2: Disable PV support
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
(5a8147479e794d5932273d01790c3602b8abeedc). Nothing worked so I'm
giving up.
Diffstat (limited to 'nixos/modules/virtualisation/amazon-options.nix')
-rw-r--r--nixos/modules/virtualisation/amazon-options.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/amazon-options.nix b/nixos/modules/virtualisation/amazon-options.nix
index 34a50dcab16..cba77d3edd1 100644
--- a/nixos/modules/virtualisation/amazon-options.nix
+++ b/nixos/modules/virtualisation/amazon-options.nix
@@ -12,5 +12,11 @@
     };
   };
 
-  config = {};
+  config = {
+    assertions = [
+      { assertion = config.ec2.hvm;
+        message = "Paravirtualized EC2 instances are no longer supported.";
+      }
+    ];
+  };
 }