testing: Explicitly encode backing image format in metadata
Apparently, there is no probing anymore in newer versions of qemu due to security considerations.
This commit is contained in:
committed by
Andreas Steffen
parent
fcb595f961
commit
fde5374a86
@@ -41,7 +41,7 @@ do_on_exit umount $LOOPDIR
|
|||||||
for host in $STRONGSWANHOSTS
|
for host in $STRONGSWANHOSTS
|
||||||
do
|
do
|
||||||
log_action "Creating guest image for $host"
|
log_action "Creating guest image for $host"
|
||||||
execute "qemu-img create -b $ROOTIMG -f $IMGEXT $IMGDIR/$host.$IMGEXT" 0
|
execute "qemu-img create -b $ROOTIMG -f $IMGEXT -F $IMGEXT $IMGDIR/$host.$IMGEXT" 0
|
||||||
execute "qemu-nbd -c $NBDEV $IMGDIR/$host.$IMGEXT" 0
|
execute "qemu-nbd -c $NBDEV $IMGDIR/$host.$IMGEXT" 0
|
||||||
partprobe $NBDEV
|
partprobe $NBDEV
|
||||||
execute "mount $NBDPARTITION $LOOPDIR" 0
|
execute "mount $NBDPARTITION $LOOPDIR" 0
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ case "$GUEST" in
|
|||||||
"")
|
"")
|
||||||
if [ ! -f "$ROOTIMG" -o "$REPLACE" ]; then
|
if [ ! -f "$ROOTIMG" -o "$REPLACE" ]; then
|
||||||
log_action "Creating root image $ROOTIMG"
|
log_action "Creating root image $ROOTIMG"
|
||||||
execute "qemu-img create -b $BASEIMG -f $IMGEXT $ROOTIMG"
|
execute "qemu-img create -b $BASEIMG -f $IMGEXT -F $IMGEXT $ROOTIMG"
|
||||||
ALL_RECIPES=1
|
ALL_RECIPES=1
|
||||||
fi
|
fi
|
||||||
log_action "Connecting root image to NBD device $NBDEV"
|
log_action "Connecting root image to NBD device $NBDEV"
|
||||||
|
|||||||
Reference in New Issue
Block a user