Skip to content

Commit 877f668

Browse files
jimrollenhagenjayofdoom
authored andcommitted
Use partx to update partition table
partprobe does not appear to work in virtual machines. Let's find out if `partx -u` does the same thing and also works on virt. Change-Id: I4467299a82e728930ac8f99a0ba16d3ea7c6755c Closes-Bug: #1418833
1 parent 5714454 commit 877f668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ironic_python_agent/shell/copy_configdrive_to_disk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ DEVICE="$2"
4141
[[ -f $CONFIGDRIVE ]] || usage "$CONFIGDRIVE (CONFIGDRIVE) is not a regular file"
4242
[[ -b $DEVICE ]] || usage "$DEVICE (DEVICE) is not a block device"
4343

44-
# We need to run partprobe to ensure all partitions are visible so the
44+
# We need to run partx -u to ensure all partitions are visible so the
4545
# following blkid command returns partitions just imaged to the device
46-
/sbin/partprobe $DEVICE || fail "running partprobe against $DEVICE"
46+
partx -u $DEVICE || fail "running partx -u $DEVICE"
4747

4848
# Check for preexisting partition for configdrive
4949
EXISTING_PARTITION=`/sbin/blkid -l -o device $DEVICE -t LABEL=config-2`

0 commit comments

Comments
 (0)