diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-10-10 18:37:13 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-10-10 19:03:50 +0200 |
commit | 83efded3132735d5aaa5f8aca5eaaed1f8f99244 (patch) | |
tree | ba87a4d6956241c9a1ef38c1555521c1f791cd6d /testing/scripts/build-baseimage | |
parent | b7b2f9379d2c84f3828bcd182b10aced91917309 (diff) | |
download | strongswan-83efded3132735d5aaa5f8aca5eaaed1f8f99244.tar.bz2 strongswan-83efded3132735d5aaa5f8aca5eaaed1f8f99244.tar.xz |
testing: Ensure no guest is running when modifying images
Sometimes guests are not stopped properly. If images are then modified
they will be corrupted.
Diffstat (limited to 'testing/scripts/build-baseimage')
-rwxr-xr-x | testing/scripts/build-baseimage | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/scripts/build-baseimage b/testing/scripts/build-baseimage index 552e98c52..075fd8e1e 100755 --- a/testing/scripts/build-baseimage +++ b/testing/scripts/build-baseimage @@ -7,6 +7,7 @@ DIR=$(dirname `readlink -f $0`) . $DIR/function.sh [ `id -u` -eq 0 ] || die "You must be root to run $0" +running_any $STRONGSWANHOSTS && die "Please stop test environment before running $0" check_commands debootstrap mkfs.ext3 partprobe qemu-img qemu-nbd sfdisk |