From 6e6f83e417abc6ed01c033dc31f750d1b483e433 Mon Sep 17 00:00:00 2001 From: Josh Curl Date: Fri, 6 Jan 2017 10:34:29 -0800 Subject: [PATCH] Wait for device partitions in type-0 Packet instance installs --- scripts/hosting/packet/packet.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/hosting/packet/packet.sh b/scripts/hosting/packet/packet.sh index 4802e1eab..3f55900ee 100644 --- a/scripts/hosting/packet/packet.sh +++ b/scripts/hosting/packet/packet.sh @@ -92,6 +92,8 @@ partprobe || true echo -e "a\n1\nw" | fdisk ${DEV_PREFIX}a || true partprobe || true +wait_for_dev ${DEV_PREFIX}a1 ${DEV_PREFIX}a5 ${DEV_PREFIX}a6 ${DEV_PREFIX}a7 + if [ "$RAID" = "true" ]; then sfdisk --dump ${DEV_PREFIX}a | sfdisk --no-reread ${DEV_PREFIX}b