summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-23 20:01:33 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-23 20:01:33 +0000
commit172ed6ee26c3936251b92c3897ccef1f4e3cac00 (patch)
treea4f518718f53812bb2e0d5a5f9fb71ff69fc4e96
parentebeecd325d59f039b681225e6b0a08d5a1efa727 (diff)
downloadanaconda-172ed6ee26c3936251b92c3897ccef1f4e3cac00.tar.gz
anaconda-172ed6ee26c3936251b92c3897ccef1f4e3cac00.tar.xz
anaconda-172ed6ee26c3936251b92c3897ccef1f4e3cac00.zip
don't try to make dirs more than once (#100554)
-rw-r--r--fsset.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 3e4a2a5bd..7fea782d9 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1424,7 +1424,9 @@ class FileSystemSet:
searchPath = 1)
rootDev = "/dev/%s" % (root.device.getDevice(),)
- os.makedirs(instPath + rootDev[:string.rfind(rootDev, "/")])
+ rootdir = instPath + rootDev[:string.rfind(rootDev, "/")]
+ if not os.path.isdir(rootdir):
+ os.makedirs(rootdir)
iutil.copyDeviceNode(rootDev, instPath + rootDev)
# raise RuntimeError