diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-03 17:03:49 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-03 17:46:34 +0200 |
commit | fbe6d23624b0b62cb5754d37ab81007cd4c035ab (patch) | |
tree | f3e673664e7c297ea31f52ed0a8626ef863de1d3 /nixos/maintainers | |
parent | e6faf2a4e6c9d079e9c04dc88988479a73a54b34 (diff) |
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/maintainers')
-rwxr-xr-x | nixos/maintainers/scripts/ec2/create-amis.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index ac43d7dc31a24..24ced8da531a0 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -3,21 +3,20 @@ # 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 pv" +types="hvm" 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" |