Merge pull request #59848 from AmineChikhaoui/ec2-fix-resize2fs

ec2 image: fix resize2fs (cherry pick PR#57633)
This commit is contained in:
Linus Heckemann
2019-04-18 21:53:59 +02:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ in {
pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
partitionTableType = if config.ec2.hvm then "legacy" else "none";
diskSize = cfg.sizeMB;
fsType = "ext4";
configFile = pkgs.writeText "configuration.nix"
''
{

View File

@@ -31,6 +31,7 @@ in
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};