Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56060 - catalyst doesnt umount pkgcache before empty
Summary: catalyst doesnt umount pkgcache before empty
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 08:10 UTC by Chris Bainbridge (RETIRED)
Modified: 2004-08-22 10:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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