diff options
-rw-r--r-- | virt-bootstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/virt-bootstrap.py b/virt-bootstrap.py index 36902f5..8540d98 100644 --- a/virt-bootstrap.py +++ b/virt-bootstrap.py @@ -66,7 +66,8 @@ def set_root_password(rootfs, password): def bootstrap(args): source = get_source(args) - os.makedirs(args.dest) + if not os.path.exists(args.dest): + os.makedirs(args.dest) source.unpack(args.dest) if args.root_password is not None: |