From: Richard W.M. Jones Date: Sat, 12 Dec 2015 14:58:43 +0000 (+0000) Subject: 2015-virt-tools: Don't clean files when run in --quick mode. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=669208c3e99dbc54e30a0dcde9a86a7f42db2578;p=libguestfs-talks.git 2015-virt-tools: Don't clean files when run in --quick mode. --- diff --git a/2015-virt-tools/run b/2015-virt-tools/run index 9a80550..bd67b29 100755 --- a/2015-virt-tools/run +++ b/2015-virt-tools/run @@ -7,10 +7,6 @@ set -e export GNOME_KEYRING_CONTROL= export GNOME_KEYRING_PID= -# Clean up everything. -find -name '*~' -delete -rm -f [1-9]000-*.d/* - # No proxy. #unset http_proxy #unset https_proxy @@ -21,6 +17,10 @@ guestfish -a /dev/null run || exit 1 # If not 'quick mode', create the initial images. if [ "$1" != "--quick" ]; then + # Clean up everything. + find -name '*~' -delete + rm -f [1-9]000-*.d/* + pushd 1000-virt-resize.d virt-builder --format qcow2 fedora-22 popd