]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
testing: Explicitly encode backing image format in metadata
authorTobias Brunner <tobias@strongswan.org>
Fri, 8 Jan 2021 10:08:49 +0000 (11:08 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 8 Jan 2021 10:39:44 +0000 (11:39 +0100)
Apparently, there is no probing anymore in newer versions of qemu due
to security considerations.

testing/scripts/build-guestimages
testing/scripts/build-strongswan

index 8e3a9c62eb602060797ddc6d19d3a28df80cedbd..4ef881836daa23f17cc226a0dc930a0ba501336b 100755 (executable)
@@ -41,7 +41,7 @@ do_on_exit umount $LOOPDIR
 for host in $STRONGSWANHOSTS
 do
        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
        partprobe $NBDEV
        execute "mount $NBDPARTITION $LOOPDIR" 0
index 779ec8bb372cd3758c96cb4594afcb6e2b55c1ed..af1a53ee8934ffd7e14ed970dbbab9c522309608 100755 (executable)
@@ -96,7 +96,7 @@ case "$GUEST" in
 "")
        if [ ! -f "$ROOTIMG" -o "$REPLACE" ]; then
                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
        fi
        log_action "Connecting root image to NBD device $NBDEV"