From: Reto Buerki Date: Wed, 12 Dec 2012 08:46:51 +0000 (+0100) Subject: Make root image a clone of the base image X-Git-Tag: 5.0.2rc1~1^2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbe031d75539f372459e2ba3518faff467baaf79;p=thirdparty%2Fstrongswan.git Make root image a clone of the base image --- diff --git a/testing/scripts/build-rootimage b/testing/scripts/build-rootimage index 1890c4eed7..3fe8ace495 100755 --- a/testing/scripts/build-rootimage +++ b/testing/scripts/build-rootimage @@ -21,7 +21,7 @@ echo "Building root image" [ `id -u` -eq 0 ] || die "You must be root to run $0" [ -f "$BASEIMG" ] || die "Base image $BASEIMG not found" -check_commands partprobe qemu-nbd +check_commands partprobe qemu-img qemu-nbd load_qemu_nbd @@ -29,7 +29,7 @@ mkdir -p $LOOPDIR mkdir -p $ROOTIMGCOMPILEDIR log_action "Creating root image $ROOTIMG" -execute "cp $BASEIMG $ROOTIMG" +execute "qemu-img create -b $BASEIMG -f $IMGEXT $ROOTIMG" log_action "Connecting root image to NBD device $NBDEV" execute "qemu-nbd -c $NBDEV $ROOTIMG"