From 5702680ef98c14a791b354215cf5cf7165053fa7 Mon Sep 17 00:00:00 2001 From: milanm Date: Mon, 24 May 2021 11:12:36 +0200 Subject: [PATCH] bionic_fix --- copy_containers | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copy_containers b/copy_containers index 0f16847..9da6bf3 100755 --- a/copy_containers +++ b/copy_containers @@ -142,6 +142,8 @@ ssh "$DEST_IP" -p $DEST_PORT zfs set mountpoint=/var/lib/lxd/storage-pools/"$DES echo "Fixing config for bionic" ssh "$DEST_IP" -p $DEST_PORT sed -i '/volatile.idmap.current/d' /var/lib/lxd/storage-pools/"$DEST_ZPOOL_2"/containers/"$CONT_VAR"/backup.yaml +ssh "$DEST_IP" -p $DEST_PORT sed -i '/volatile.uuid/d' /var/lib/lxd/storage-pools/"$DEST_ZPOOL_2"/containers/"$CONT_VAR"/backup.yaml + echo "Importing "$CONT_VAR" on destination" ssh "$DEST_IP" -p $DEST_PORT lxd import "$CONT_VAR" --force