Red Hat Bugzilla – Bug 614496
yum crashes when /proc is not mounted
Last modified: 2014-01-21 01:18:27 EST
Escalated to Bugzilla from IssueTracker
Event posted on 07-02-2010 02:08pm EDT by woodard
Description of problem:
if you try to run yum when /proc isn't mounted then it crashes. It should handle the error more gracefully and print an error message rather than crashing.
This happens when trying to update a image used for a virtual client.
bash-4.1# yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 4, in <module>
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 42, in <module>
File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 24, in <module>
from rpmUtils import arch
File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 333, in <module>
canonArch = getCanonArch()
File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 329, in getCanonArch
File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 292, in getCanonX86_64Arch
f = open("/proc/cpuinfo", "r")
IOError: [Errno 2] No such file or directory: '/proc/cpuinfo'
Steps to Reproduce:
This event sent from IssueTracker by kbaxley [LLNL (HPC)]
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.