summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-07-25 03:17:43 +0000
committerMike Fulbright <msf@redhat.com>2000-07-25 03:17:43 +0000
commitef0749088e74402b6348f1f8392a8cfc6ce5433e (patch)
tree603084a6025eba938e8eaf3d2f30e8f035c8b325 /isys
parent9ea3e330e5d4e72b9037283a7d4d8a2a932c7fbd (diff)
downloadanaconda-ef0749088e74402b6348f1f8392a8cfc6ce5433e.tar.gz
anaconda-ef0749088e74402b6348f1f8392a8cfc6ce5433e.tar.xz
anaconda-ef0749088e74402b6348f1f8392a8cfc6ce5433e.zip
enable mounting of usbdevfs as well
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 6fea574af..2987c004a 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -87,7 +87,7 @@ def ddfile(file, megs, pw = None):
def mount(device, location, fstype = "ext2", readOnly = 0):
location = os.path.normpath(location)
- if device != "/proc":
+ if device != "/proc" and device != "/usbdevfs":
devName = "/tmp/%s" % device
makeDevInode(device, devName)
device = devName
@@ -101,7 +101,7 @@ def mount(device, location, fstype = "ext2", readOnly = 0):
if not rc:
mountCount[location] = 1
- if device != "/proc":
+ if device != "/proc" and device != "/usbdevfs":
os.unlink(device)
return rc