From 9555a98c1eefa268cd2d11482bd7cfd612a1ab01 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Thu, 21 Jan 2016 09:56:35 +0100 Subject: [PATCH] Bug #4221: disk detach / attach leaves VM in broken state (cherry picked from commit 06bedfe8f6227043d2804aef2479a69545af6346) --- src/tm_mad/qcow2/ln | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tm_mad/qcow2/ln b/src/tm_mad/qcow2/ln index fabd61fdce..58be295a48 100755 --- a/src/tm_mad/qcow2/ln +++ b/src/tm_mad/qcow2/ln @@ -82,6 +82,8 @@ if [ -z "\${SNAP}" ]; then fi ln -sf "$SNAP_DIR/\$SNAP" "$DST_PATH" + +$RM -f "${DST_PATH}.snap" ln -sf "$SNAP_DIR" "${DST_PATH}.snap" EOT )