livemedia-creator: Make sure ROOT_PATH exists (#1144140)
If ROOT_PATH doesn't exist when making a tar file, create it first. Related: rhbz#1144140
This commit is contained in:
parent
55299e3944
commit
da68471b33
@ -584,6 +584,7 @@ def novirt_install(opts, disk_img, disk_size, repo_url):
|
|||||||
# Install directly into ROOT_PATH, make sure it starts clean
|
# Install directly into ROOT_PATH, make sure it starts clean
|
||||||
if os.path.exists(ROOT_PATH):
|
if os.path.exists(ROOT_PATH):
|
||||||
shutil.rmtree(ROOT_PATH)
|
shutil.rmtree(ROOT_PATH)
|
||||||
|
if not os.path.isdir(ROOT_PATH):
|
||||||
os.mkdir(ROOT_PATH)
|
os.mkdir(ROOT_PATH)
|
||||||
else:
|
else:
|
||||||
args += ["--image", disk_img]
|
args += ["--image", disk_img]
|
||||||
|
Loading…
Reference in New Issue
Block a user