mkimg: workaround NBD ready issue
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
This commit is contained in:
parent
aea555968e
commit
92c7c8369c
1 changed files with 2 additions and 0 deletions
2
mkimg
2
mkimg
|
@ -154,6 +154,8 @@ else
|
|||
fi
|
||||
|
||||
msg "Partitioning..."
|
||||
# FIXME: otherwise NBD device is not ready
|
||||
sleep 1s
|
||||
sudo parted "$loopdev" mklabel gpt mkpart "" "$fstype" 0% 100%
|
||||
|
||||
sudo partprobe "$loopdev"
|
||||
|
|
Loading…
Add table
Reference in a new issue