diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-07-25 18:14:55 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-07-25 18:14:55 +0000 |
commit | fce91732d2c7e477af506959f44062bf8501a3cb (patch) | |
tree | 453b10b4fe76e3ff93ec9ec4919b9a748dc47a16 /isys | |
parent | c5fccc19ec76fd99ca63b38c764fe89360fde092 (diff) | |
download | anaconda-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.py | 3 |
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) |