diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-10-07 19:41:06 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-10-07 19:41:06 +0000 |
commit | b0345a48edcc850ac1ab45f8d4113a130e937bf1 (patch) | |
tree | c966ddc2ce125b50a6e40553531d620fc9b9f384 /fsset.py | |
parent | d9e3174da635e33b746c6a21932a82d05208cffb (diff) | |
download | anaconda-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |