From e2d1ed30688eedeed1550f4427e769614ca171e3 Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Tue, 8 Feb 2022 01:32:39 +0100 Subject: [PATCH] added further measure to make sure disk is ready after partition --- locals.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locals.tf b/locals.tf index d29d10a..63fae36 100644 --- a/locals.tf +++ b/locals.tf @@ -22,7 +22,7 @@ locals { "sgdisk -e /dev/sda", "parted -s /dev/sda resizepart 4 99%", "parted -s /dev/sda mkpart primary ext2 99% 100%", - "partprobe /dev/sda", + "partprobe /dev/sda && udevadm settle && fdisk -l /dev/sda", "mount /dev/sda4 /mnt/ && btrfs filesystem resize max /mnt && umount /mnt", "mke2fs -L ignition /dev/sda5", "mount /dev/sda5 /mnt",