diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-21 16:45:50 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-21 16:45:50 +0000 |
commit | cfd62a134c57c7adecf0fc9ce3b0c70717cbb607 (patch) | |
tree | f66136f59fa22073531c13e3330c8dc41ff774c6 | |
parent | a642f44e66d3675d42f470d0b8c4eae7898fd161 (diff) | |
download | anaconda-cfd62a134c57c7adecf0fc9ce3b0c70717cbb607.tar.gz anaconda-cfd62a134c57c7adecf0fc9ce3b0c70717cbb607.tar.xz anaconda-cfd62a134c57c7adecf0fc9ce3b0c70717cbb607.zip |
we shouldn't unlink devices in /dev on mount. that's just unfriendly (especially with lvm...)
-rw-r--r-- | isys/isys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py index f7a2ef280..0d94d3fe7 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -155,7 +155,7 @@ def mount(device, location, fstype = "ext2", readOnly = 0): if not rc: mountCount[location] = 1 - if device != "none": + if device != "none" and not device.startswith("/dev"): os.unlink(device) return rc |