two-images: udevadm settle avant de relire la table de la cible syonad/two#53
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
a990c5a33e
commit
e2ee4665fc
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ if [ -z "${VSIZE}" ] || [ "${VSIZE}" -gt "${TARGET_BYTES}" ]; then
|
|||
fi
|
||||
qemu-img convert -n --target-is-zero -f qcow2 -O raw /work/source.qcow2 "${TARGET}"
|
||||
umount /work
|
||||
udevadm settle
|
||||
blockdev --rereadpt "${TARGET}"
|
||||
udevadm settle
|
||||
printf 'TARGET=%s\n' "${TARGET}" > /run/two-images.env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue