If ROOT_PATH doesn't exist when making a tar file, create it first.
Related: rhbz#1144140
---
src/sbin/livemedia-creator | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index 62b9b24..42cf870 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -584,6 +584,7 @@ def novirt_install(opts, disk_img, disk_size, repo_url):
# Install directly into ROOT_PATH, make sure it starts clean
if os.path.exists(ROOT_PATH):
shutil.rmtree(ROOT_PATH)
+ if not os.path.isdir(ROOT_PATH):
os.mkdir(ROOT_PATH)
else:
args += ["--image", disk_img]
--
1.9.3