[rhel7-branch 8/8] livemedia-creator: Make sure ROOT_PATH exists (#1144140)
Brian C. Lane
bcl at redhat.com
Tue Sep 23 00:28:43 UTC 2014
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
More information about the anaconda-patches
mailing list