Bug 213818 - Crash in anaconda.backend.doPreInstall
Summary: Crash in anaconda.backend.doPreInstall
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 6
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-03 05:50 UTC by Ed Swierk
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-22 21:14:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ed Swierk 2006-11-03 05:50:56 UTC
Using Anaconda to upgrade an FC5 system to FC6, it crashes after I click Next in
the final confirmation dialog before installation begins.  This is the only part
of the traceback I could capture:

21:28:50 INFO    : moving (1) to step confirmupgrade
21:29:39 INFO    : moving (1) to step install
21:29:39 INFO    : moving (1) to step migratefilesystems
21:29:39 INFO    : moving (1) to step preinstallconfig
21:29:40 INFO    : could not create directory /var/lib: File exists
21:29:40 WARNING : no dev package, going to bind mount /dev
21:29:40 CRITICAL: Traceback (most recent call first):
  File "/usr/lib/anaconda/yuminstall.py", line 1240, in doPreInstall
    f.close()
  File "/usr/lib/anaconda/backend.py", line 157, in doPreInstall
    anaconda.backend.doPreInstall(anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 199, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 122, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 923, in nextClicked
    self.anaconda.dispatch.gotoNext()
  File "/usr/lib/anaconda/iw/progress_gui.py", line 243, in renderCallback
    self.intf.icw.nextClicked()
  File "/usr/lib/anaconda/gui.py", line 950, in handleRenderCallback
    self.currentWindow.renderCallback()
IOError: [Errno 22] Invalid argument

Comment 1 Ed Swierk 2006-11-03 06:10:13 UTC
The crash occurred because I had replaced /etc/mtab with a symlink to /proc/mounts.

Adding os.unlink(anaconda.rootPath + "/etc/mtab") immediately after the "An old
mtab can cause confusion" comment in yuminstall.py would avoid the crash.


Comment 2 Chris Lumens 2007-02-22 21:14:02 UTC
This will be fixed in the next build of anaconda.  Thanks for the report.


Note You need to log in before you can comment on or make changes to this bug.