Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 56060

Summary: catalyst doesnt umount pkgcache before empty
Product: Gentoo Hosted Projects Reporter: Chris Bainbridge (RETIRED) <chrb>
Component: CatalystAssignee: John Davis (zhen) (RETIRED) <zhen>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Bainbridge (RETIRED) gentoo-dev 2004-07-04 08:10:09 UTC
If /usr/portage is included in livecd/empty in the spec file and pkgcache is selected the empty will fail with:

Emptying directory /usr/portage
Traceback (most recent call last):
  File "/usr/bin/catalyst", line 117, in ?
    mytarget.run()
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 351, in run
    self.clean()
  File "/usr/lib/catalyst/modules/livecd_stage2_target.py", line 79, in clean
    generic_stage_target.clean(self)
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 268, in clean
    shutil.rmtree(myemp)
  File "/usr/lib/python2.3/shutil.py", line 140, in rmtree
    raise exc[0], (exc[1][0], exc[1][1] + ' removing '+arg)
OSError: [Errno 16] Device or resource busy 
 removing /var/tmp/catalyst/tmp/default/livecd-stage2-pentium3-20040604/usr/portage/packages
 
Catalyst should umount pkgcache before cleaning.
Comment 1 John Davis (zhen) (RETIRED) gentoo-dev 2004-08-12 16:30:16 UTC
it should be unmounting already ....
the spec templates have always had /usr/portage in livecd/rm and I have never seen this problem. Can you reproduce the bug, or is it a problem with your kit/ machine?
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2004-08-22 10:12:17 UTC
closing due to no activity/ answer