nova-image: support partition resizing

This commit is contained in:
Antoine Eiche 2017-02-24 22:19:53 +01:00
parent dec7ecbbbc
commit 386c19a224

View File

@ -6,10 +6,16 @@ with lib;
imports = [
../profiles/qemu-guest.nix
../profiles/headless.nix
./grow-partition.nix
];
config = {
fileSystems."/".device = "/dev/disk/by-label/nixos";
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
autoResize = true;
};
virtualisation.growPartition = true;
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub.device = "/dev/vda";