Fix quoting on message.
Create filesystems in the correct order.
udevadm settle instead of partprobe. Try 3.