From da68471b33b491a177c043a86dd641359f2faa26 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 22 Sep 2014 16:27:06 -0700 Subject: [PATCH] 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 --- src/sbin/livemedia-creator | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index 62b9b248..42cf8709 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]