We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 102c86e + d159aec commit 3cd9d47Copy full SHA for 3cd9d47
1 file changed
ironic_python_agent/shell/copy_configdrive_to_disk.sh
@@ -37,6 +37,10 @@ DEVICE="$2"
37
[[ -f $CONFIGDRIVE ]] || usage "$CONFIGDRIVE (CONFIGDRIVE) is not a regular file"
38
[[ -b $DEVICE ]] || usage "$DEVICE (DEVICE) is not a block device"
39
40
+# We need to run partprobe to ensure all partitions are visible so the
41
+# following blkid command returns partitions just imaged to the device
42
+/sbin/partprobe $DEVICE || fail "running partprobe against $DEVICE"
43
+
44
# Check for preexisting partition for configdrive
45
EXISTING_PARTITION=`/sbin/blkid -l -o device $DEVICE -t LABEL=config-2`
46
if [[ $? == 0 ]]; then
0 commit comments