From 242d7e8381850fa03bbff9969e20e946af38f850 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sat, 26 Aug 2017 21:41:53 +0100 Subject: untar: Use unique name with virt-sandbox Specify unique name when creating Libvirt domain with virt-sandbox. Otherwise the default name "sandbox" will be used and this might result in collision with another instance of virt-bootstrap. --- src/virtBootstrap/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/virtBootstrap/utils.py') diff --git a/src/virtBootstrap/utils.py b/src/virtBootstrap/utils.py index 66cd301..923309a 100644 --- a/src/virtBootstrap/utils.py +++ b/src/virtBootstrap/utils.py @@ -102,6 +102,7 @@ def safe_untar(src, dest): """ virt_sandbox = ['virt-sandbox', '-c', LIBVIRT_CONN, + '--name=bootstrap_%s' % os.getpid(), '-m', 'host-bind:/mnt=' + dest] # Bind destination folder # Compression type is auto detected from tar -- cgit