Red Hat Bugzilla – Bug 11273
anaconda dies during upgrade when /tmp is symlink to /var/tmp
Last modified: 2008-05-01 11:37:55 EDT
During an upgrade from 6.1 to 6.2, where /tmp is a symbolic link to
/var/tmp, I get the following message just after I have told it I do not
wish to make any changes to the packages it will install (below text is
copied by hand so there may be some minor errors):
Traceback (innermost last):
File "/usr/bin/anaconda", line 342 in ? intf.run(todo, test=test)
File "/usr/lib/anaconda/text.py", line 1165 in run rc = apply(step(),
File "/usr/lib/anaconda/text.py", line 702 in __call__ if todo.doInstall():
File "/tmp/updates/todo.py", line 1163 in do Install()
self.instLog = open(setl.instPath _ logname, "w+")
IOError: [Errno2] No such file or directory:
One solution is to remove the symlink and create a /tmp directory on the /
It might be nice, however, for anaconda to notice this problem before it
tries to write stuff into that "directory".
I know, I know: "Doctor, doctor, it hurts when I do this", etc. I think
that such a symlink is common, however. For me, it prevents / from filling
up when certain lame apps and installers write megabytes to /tmp.
The installer is not able to deal with absolute links on the filesystem and this
is the cause of the problem you are seeing. Change the link from absolute to
relative and the upgrade will go without any problems.