From: Jamie McClelland Date: Thu, 11 Feb 2016 17:23:27 +0000 (-0500) Subject: allow down() script to complete even with errors X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=45170872b1dadad2da90f690ac244d5a4846021f;p=kvm-manager.git allow down() script to complete even with errors otherwise it is impossible to fully de-configure a guest that has been partially de-configured (e.g. it has been killed). --- diff --git a/kvm-manager b/kvm-manager index e14df40..1bdf74f 100755 --- a/kvm-manager +++ b/kvm-manager @@ -137,9 +137,11 @@ EOF } down() { + set +e brctl delif "$BRIDGE" "$TAP" ip link set "$TAP" down ip tuntap del mode tap dev "$TAP" + set -e # no need to lock up the block device as well, since the owner might # prefer to manipulate the disk directly. }