summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-01-23 20:34:50 +0000
committerJeremy Katz <katzj@redhat.com>2007-01-23 20:34:50 +0000
commitbc9b811441a202009208b02ee52a7673b208ae95 (patch)
tree4a8101f39feb9dc961e639380506485193de7bb5 /isys/isys.py
parentad41515feffb4b3c41530e1a689ea89d1bbe16dc (diff)
downloadanaconda-bc9b811441a202009208b02ee52a7673b208ae95.tar.gz
anaconda-bc9b811441a202009208b02ee52a7673b208ae95.tar.xz
anaconda-bc9b811441a202009208b02ee52a7673b208ae95.zip
2007-01-23 Jeremy Katz <katzj@redhat.com>
* isys/isys.py (makeDevInode): Don't remake device nodes that already exist.
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index d8378d5e1..f94cd5c80 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -400,6 +400,8 @@ def getDasdState(dev):
def makeDevInode(name, fn=None):
if fn:
+ if os.path.exists(fn):
+ return fn
_isys.mkdevinode(name, fn)
return fn
path = '/dev/%s' % (name,)