Bug 198515
Summary: | mock -r distro clean does not clean /var/lib/mock/distro | ||
---|---|---|---|
Product: | [Retired] Fedora Hosted Projects | Reporter: | Ralf Corsepius <rc040203> |
Component: | mock | Assignee: | Clark Williams <williams> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | dcantrell, extras-qa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-10-24 19:11:45 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ralf Corsepius
2006-07-11 16:07:22 UTC
The directories and files that you're seeing are created *after* a clean operation to ensure that the hierarchy is correct. This is because the internal cleanup function is called as part of an "init" operation as well as a "clean" operation. Changing this behavior will require some re-architecting in how the Root object handles init versus clean ops. Either that or changing permission/ownership of those files so your "user2" can nuke them. (In reply to comment #1) > The directories and files that you're seeing are created *after* a clean > operation to ensure that the hierarchy is correct. This is because the > internal > cleanup function is called as part of an "init" operation as well as a "clean" > operation. Well - what shall I say - your problem ;) 'mock clean' is documented (man mock) as: ... clean - purge the chroot tree ... Apparently mock doesn't do this. Also, I think I need to emphasize the severity of this bug: It classifies mock as "not multiuser-capabile", i.e. as unusable in a multiuser environment. This behavior got cleaned up in the Great Re-Write that happened over the last year. mock -r distro clean now deletes /var/lib/mock/<distro> |