testing: Add delay after qemu-nbd -c
Seems that there is a delay before the disk can be used when using newer QEMU versions (e.g. on Debian trixie). We get errors like these: sfdisk: cannot open /dev/nbd0: Inappropriate ioctl for device or mount: /srv/strongswan-testing/build/loop: special device /dev/nbd0p1 does not exist. A sleep before the next command seems to help. Also see [1]. [1] https://gitlab.com/qemu-project/qemu/-/issues/1413
This commit is contained in:
@@ -42,6 +42,8 @@ root)
|
||||
esac
|
||||
|
||||
do_on_exit qemu-nbd -d $NBDEV
|
||||
# wait for disk to become ready with newer QEMU versions
|
||||
sleep 1
|
||||
blockdev --rereadpt $NBDEV
|
||||
|
||||
log_action "Mounting $NBDPARTITION to $LOOPDIR"
|
||||
|
||||
Reference in New Issue
Block a user