This allow us the add partition to the test devices.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
-
-The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or partx(8).
+Syncing disks.
----- list result: -----
Disk <removed>: 20 MiB, 20971520 bytes, 40960 sectors
----- fixing after resize: -----
GPT PMBR size mismatch (20479 != 40959) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.
-Re-reading the partition table failed.: Invalid argument
local dev
img=$(ts_image_init $1 $2)
- dev=$($TS_CMD_LOSETUP --show -f "$img")
+ dev=$($TS_CMD_LOSETUP --show --partscan -f "$img")
if [ "$?" != "0" -o "$dev" = "" ]; then
ts_die "Cannot init device"
fi