summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-07-25 18:14:55 +0000
committerJeremy Katz <katzj@redhat.com>2007-07-25 18:14:55 +0000
commitfce91732d2c7e477af506959f44062bf8501a3cb (patch)
tree453b10b4fe76e3ff93ec9ec4919b9a748dc47a16 /isys
parentc5fccc19ec76fd99ca63b38c764fe89360fde092 (diff)
downloadanaconda-fce91732d2c7e477af506959f44062bf8501a3cb.tar.gz
anaconda-fce91732d2c7e477af506959f44062bf8501a3cb.tar.xz
anaconda-fce91732d2c7e477af506959f44062bf8501a3cb.zip
2007-07-25 Jeremy Katz <katzj@redhat.com>
* isys/isys.py (makeDevInode): Warn if we try to explicitly create a device in /tmp
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index d2d6bbd6a..0c1943bc0 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -34,6 +34,7 @@ import block
import logging
log = logging.getLogger("anaconda")
+import warnings
mountCount = {}
raidCount = {}
@@ -524,6 +525,8 @@ def getDasdState(dev):
def makeDevInode(name, fn=None):
if fn:
+ if fn.startswith("/tmp"):
+ warnings.warn("device node created in /tmp", stacklevel=2)
if os.path.exists(fn):
return fn
_isys.mkdevinode(name, fn)