Bug 66509 - anaconda leaves junk in /var/lib on failed upgrade
Summary: anaconda leaves junk in /var/lib on failed upgrade
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: anaconda
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-06-11 16:18 UTC by John Reiser
Modified: 2007-04-18 16:43 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-06-12 03:24:16 UTC
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2002-06-11 16:18:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.16-KRUD-perfctr2.3.6
i586)

Description of problem:
If an upgrade install (for example, 7.2==>7.3) fails because of
fatal error (media, disk space, EPERM in rpm), then anaconda
leaves a junk directory /var/lib/anaconda-rebuilddbNNNNNNNNNN
which can contain 25MB or more of space.  Either this directory
should be removed automatically, or anaconda should give a
message about it.  [If an upgrade fails once, then chances are
it will fail a couple more times before succeeding, and
losing 25MB of disk space each time can cause a failure itself!]

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. /usr/bin/chattr +i /bin/cp   # make immutable some file that will be upgraded
2. Attempt to upgrade; it will fail due to EPERM in rpm
3. Reboot, and look in /var/lib/anaconda*
	

Actual Results:  $ du -s /var/lib/anaconda*
24940
$ 


Expected Results:  Either: no junk in /var/lib; or, a message about it.

Additional info:

Comment 1 Michael Fulbright 2002-06-12 03:24:10 UTC
Assigning to an engineer.

Comment 2 Jeremy Katz 2002-07-02 05:35:51 UTC
We don't do rebuilds in the general case anymore, so this isn't a problem with
our current codebase.


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