Bug 164441 - mock config allows changing basedir, but it's hardcoded
mock config allows changing basedir, but it's hardcoded
Status: CLOSED CANTFIX
Product: Fedora Hosted Projects
Classification: Retired
Component: mock (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Clark Williams
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-27 17:44 EDT by Jeremy Katz
Modified: 2014-01-21 17:52 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-08-10 17:16:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jeremy Katz 2005-07-27 17:44:36 EDT
basedir is hardcoded into mock-helper so that people can't mount /proc
whereever.  But you can change basedir in the config file.

We should either make it so changing it in the config file then lets things work
or remove the option
Comment 1 Andrew Ziem 2006-04-03 22:36:28 EDT
I worked around the problem using a symlink, but an interim solution would be to
produce a warning to minimize confusion.
Comment 2 Clark Williams 2006-08-10 17:16:33 EDT
I'll add a snippet of code to check that configs['basedir'] is still
/var/lib/mock in the 0.6 code base. We've looked at this repeatedly and there's
just no safe way to change mock-helper. So for now bind-mounts is still the only
safe way to change where /var/lib/mock points. 

Shouldn't be an issue for the 0.7 codebase and up, since we removed mock-helper
and the setuid launcher just runs python on /usr/bin/mock.py

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