summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-21 16:45:50 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-21 16:45:50 +0000
commitcfd62a134c57c7adecf0fc9ce3b0c70717cbb607 (patch)
treef66136f59fa22073531c13e3330c8dc41ff774c6 /isys
parenta642f44e66d3675d42f470d0b8c4eae7898fd161 (diff)
downloadanaconda-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...)
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py2
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