summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-10-07 19:41:06 +0000
committerJeremy Katz <katzj@redhat.com>2004-10-07 19:41:06 +0000
commitb0345a48edcc850ac1ab45f8d4113a130e937bf1 (patch)
treec966ddc2ce125b50a6e40553531d620fc9b9f384 /fsset.py
parentd9e3174da635e33b746c6a21932a82d05208cffb (diff)
downloadanaconda-b0345a48edcc850ac1ab45f8d4113a130e937bf1.tar.gz
anaconda-b0345a48edcc850ac1ab45f8d4113a130e937bf1.tar.xz
anaconda-b0345a48edcc850ac1ab45f8d4113a130e937bf1.zip
2004-10-07 Jeremy Katz <katzj@redhat.com>
* fsset.py (FileSystemSet.makeLVMNodes): Make sure the DM node doesn't exist before we create it (#124092)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index 5ff1cfd1a..6b19b281f 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1580,6 +1580,8 @@ MAILADDR root
if not os.path.isdir(rootdir):
os.makedirs(rootdir)
dmdev = "/dev/mapper/" + root.device.getDevice().replace("/", "-")
+ if os.path.exists(instPath + dmdev):
+ os.unlink(instPath + dmdev)
iutil.copyDeviceNode(dmdev, instPath + dmdev)
# unlink existing so that we dtrt on upgrades
if os.path.exists(instPath + rootDev):