diff options
author | Reto Buerki <reet@codelabs.ch> | 2012-12-12 09:46:51 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:54:56 +0100 |
commit | cbe031d75539f372459e2ba3518faff467baaf79 (patch) | |
tree | 957fe5f8856454d2b0ac8f6d742f48ed95c9d6c0 /testing/scripts/build-rootimage | |
parent | 76ccd25a050a543e9dfc5fd23d5ebe976660fccb (diff) | |
download | strongswan-cbe031d75539f372459e2ba3518faff467baaf79.tar.bz2 strongswan-cbe031d75539f372459e2ba3518faff467baaf79.tar.xz |
Make root image a clone of the base image
Diffstat (limited to 'testing/scripts/build-rootimage')
-rwxr-xr-x | testing/scripts/build-rootimage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/scripts/build-rootimage b/testing/scripts/build-rootimage index 1890c4eed..3fe8ace49 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" |