Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Wait for udev after resizing partitions

Otherwise the EC2 boot may panic.

+4 -1
+4 -1
nixos/modules/virtualisation/amazon-grow-partition.nix
··· 39 39 ''; 40 40 41 41 boot.initrd.postDeviceCommands = '' 42 - [ -e /dev/xvda ] && [ -e /dev/xvda1 ] && TMPDIR=/run sh $(type -P growpart) /dev/xvda 1 42 + if [ -e /dev/xvda ] && [ -e /dev/xvda1 ]; then 43 + TMPDIR=/run sh $(type -P growpart) /dev/xvda 1 44 + udevadm settle 45 + fi 43 46 ''; 44 47 45 48 };