Wait for udev after resizing partitions
Otherwise the EC2 boot may panic.
This commit is contained in:
parent
3fada8c5a0
commit
e866840a12
@ -39,7 +39,10 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
boot.initrd.postDeviceCommands = ''
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user