Wait for udev after resizing partitions

Otherwise the EC2 boot may panic.
This commit is contained in:
Eelco Dolstra 2015-09-28 21:50:22 +02:00
parent 3fada8c5a0
commit e866840a12

View File

@ -39,7 +39,10 @@ in
'';
boot.initrd.postDeviceCommands = ''
[ -e /dev/xvda ] && [ -e /dev/xvda1 ] && TMPDIR=/run sh $(type -P growpart) /dev/xvda 1
if [ -e /dev/xvda ] && [ -e /dev/xvda1 ]; then
TMPDIR=/run sh $(type -P growpart) /dev/xvda 1
udevadm settle
fi
'';
};