Skip to content

Commit 3cd9d47

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix: partitions recently imaged not being detected"
2 parents 102c86e + d159aec commit 3cd9d47

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ironic_python_agent/shell/copy_configdrive_to_disk.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ DEVICE="$2"
3737
[[ -f $CONFIGDRIVE ]] || usage "$CONFIGDRIVE (CONFIGDRIVE) is not a regular file"
3838
[[ -b $DEVICE ]] || usage "$DEVICE (DEVICE) is not a block device"
3939

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+
4044
# Check for preexisting partition for configdrive
4145
EXISTING_PARTITION=`/sbin/blkid -l -o device $DEVICE -t LABEL=config-2`
4246
if [[ $? == 0 ]]; then

0 commit comments

Comments
 (0)