Skip to content

Commit

Permalink
Revert "EC2: Disable PV support"
Browse files Browse the repository at this point in the history
This reverts commit fbe6d23.

this breaks every non-ec2 (non-hvm) system

cc @edolstra
  • Loading branch information
Mic92 committed Apr 4, 2017
1 parent f3dbaa7 commit 71710fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 7 additions & 6 deletions nixos/maintainers/scripts/ec2/create-amis.sh
Expand Up @@ -3,20 +3,21 @@

# To start with do: nix-shell -p awscli --run "aws configure"

set -e

set -o pipefail
#set -x

stateDir=${TMPDIR:-/tmp}/ec2-image
echo "keeping state in $stateDir"
mkdir -p $stateDir

version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.nixpkgsVersion | sed s/'"'//g)
major=${version:0:5}
echo "NixOS version is $version ($major)"

stateDir=/var/tmp/ec2-image-$version
echo "keeping state in $stateDir"
mkdir -p $stateDir

rm -f ec2-amis.nix

types="hvm"
types="hvm pv"
stores="ebs s3"
regions="eu-west-1 eu-west-2 eu-central-1 us-east-1 us-east-2 us-west-1 us-west-2 ca-central-1 ap-southeast-1 ap-southeast-2 ap-northeast-1 ap-northeast-2 sa-east-1 ap-south-1"

Expand Down
8 changes: 1 addition & 7 deletions nixos/modules/virtualisation/amazon-options.nix
Expand Up @@ -12,11 +12,5 @@
};
};

config = {
assertions = [
{ assertion = config.ec2.hvm;
message = "Paravirtualized EC2 instances are no longer supported.";
}
];
};
config = {};
}

0 comments on commit 71710fd

Please sign in to comment.