Skip to content

Commit

Permalink
fixup! F #6265: Fix recovery_snap_create_live (#2659) (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel authored Jul 25, 2023
1 parent 1fa2c5c commit e18d1b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tm_mad/ssh/recovery_snap_create_live
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ SNAP_PATH="${DISK_PATH}.snap/rs_tmp"
DISK_NAME="$(basename $DISK_PATH)"
REAL_DISK="$(dirname $DISK_PATH)/$(readlink $DISK_PATH)"

if ! virsh -c ${LIBVIRT_URI} domblkinfo one-${VMID} "$REAL_DISK" &>/dev/null; then
# not a real disk in domain blockdevice -> upgrade to 6.6.3 or higher detected
REAL_DISK="$DISK_PATH"
fi

if [ -f $SNAP_PATH ]; then
SNAP_OLD=$(stat -c "%Y" $SNAP_PATH)

Expand Down

0 comments on commit e18d1b6

Please sign in to comment.