Add a call to "udevadm settle" in write_image.sh
After GPT and MBR are destroyed systemd-udevd gets triggered which may hold /dev/sda open preventing qemu-img from writting its image. Story: 2008830 Task: 42312 Change-Id: I6105192a16fcb7f6898910e8d0ab824d731d491d
This commit is contained in:
parent
c72997d8d0
commit
9c3fbfd000
@ -43,6 +43,7 @@ DEVICE_SECTORS_COUNT=`blockdev --getsz $DEVICE`
|
||||
dd bs=512 if=/dev/zero of=$DEVICE count=33
|
||||
dd bs=512 if=/dev/zero of=$DEVICE count=33 seek=$((${DEVICE_SECTORS_COUNT} - 33))
|
||||
sgdisk -Z $DEVICE
|
||||
udevadm settle
|
||||
|
||||
log "Imaging $IMAGEFILE to $DEVICE"
|
||||
|
||||
|
7
releasenotes/notes/udevadm-settle-9d3e5f1f20211857.yaml
Normal file
7
releasenotes/notes/udevadm-settle-9d3e5f1f20211857.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Adds a call to "udevadm settle" in write_image.sh.
|
||||
After GPT and MBR are destroyed systemd-udevd gets triggered
|
||||
which may hold /dev/sda open preventing qemu-img from writting
|
||||
its image.
|
Loading…
x
Reference in New Issue
Block a user