diff options
author | Masahiro Matsuya <mmatsuya@redhat.com> | 2009-11-23 16:22:00 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-11-23 16:22:00 +0100 |
commit | 44992938bbb50988c3429349cdb0bdb57c41fa05 (patch) | |
tree | c6b335d2c1320427f19d5d9f4a59dffbd5f895a7 /yuminstall.py | |
parent | 632fa16c6c8bb21252fc7792afc2e80734100efe (diff) | |
download | anaconda-44992938bbb50988c3429349cdb0bdb57c41fa05.tar.gz anaconda-44992938bbb50988c3429349cdb0bdb57c41fa05.tar.xz anaconda-44992938bbb50988c3429349cdb0bdb57c41fa05.zip |
Mount usbfs before installing packages (#532397)
Some package %post scripts depend on usbfs, so mount it before installing
packages.
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yuminstall.py b/yuminstall.py index 26cc8ff9e..2700ceed1 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -1455,7 +1455,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon 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 = False) except Exception, e: @@ -1541,6 +1541,12 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon 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,)) + # write out the fstab if not upgrade: anaconda.id.storage.fsset.write(anaconda.rootPath) |