nova-image: support partition resizing
This commit is contained in:
parent
dec7ecbbbc
commit
386c19a224
@ -6,10 +6,16 @@ with lib;
|
|||||||
imports = [
|
imports = [
|
||||||
../profiles/qemu-guest.nix
|
../profiles/qemu-guest.nix
|
||||||
../profiles/headless.nix
|
../profiles/headless.nix
|
||||||
|
./grow-partition.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
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.kernelParams = [ "console=ttyS0" ];
|
||||||
boot.loader.grub.device = "/dev/vda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user