[PATCH rhel5 2/2] Mount /proc/bus/usb under /mnt/sysimage (#532397)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 yuminstall.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index b6b08f6..31ef782 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1279,7 +1279,7 @@ class YumBackend(AnacondaBackend):
 
     def doPreInstall(self, anaconda):
         if anaconda.dir == DISPATCH_BACK:
-            for d in ("/selinux", "/dev"):
+            for d in ("/selinux", "/dev", "/proc/bus/usb"):
                 try:
                     isys.umount(anaconda.rootPath + d, removeDir = 0)
                 except Exception, e:
@@ -1368,6 +1368,12 @@ class YumBackend(AnacondaBackend):
                 except Exception, e:
                     log.error("error mounting selinuxfs: %s" %(e,))
 
+            # For usbfs
+            try:
+                isys.mount("/proc/bus/usb", anaconda.rootPath + "/proc/bus/usb", "usbfs")
+            except Exception, e:
+                log.error("error mounting usbfs: %s" %(e,))
+
             # we need to have a /dev during install and now that udev is
             # handling /dev, it gets to be more fun.  so just bind mount the
             # installer /dev
-- 
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux