Bug 374141
Summary: | Could not find required config file: /etc/mock/default.cfg | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Neal Becker <ndbecker2> |
Component: | mock | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8 | CC: | mebrown |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-11-10 01:30:27 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
Neal Becker
2007-11-10 00:25:35 UTC
notabug. /etc/mock/defaults.cfg == site-wide default configuration option setup. Set things like default mock root dir, caching options, etc. /etc/mock/default.cfg == default chroot if no '-r' option specified Yes, these are stupid names, but we are stuck with them for now because otherwise it breaks people's existing configs, and I dont want to have to listen to certain people complain... If you want to run mock without the '-r' option, make a symlink to the config you want to use. Per the docs: $ man mock ... cut ... DESCRIPTION ... cut ... The content of a chroot is specified by the configuration specified with the -r option. A default configuration file is specified in /etc/mock/default.cfg, which is usually a symlink to one of the installed configurations. ... cut ... OPTIONS -r CHROOT Uses specified chroot configuration as defined in /etc/mock/<chroot>.cfg If none specified, uses the chroot linked to by /etc/mock/default.cfg $ head -n 6 etc/defaults.cfg | tail -n3 # This config file is for site-specific default values that apply across all # configurations. Options specified in this config file can be overridden in # the individual mock config files. (In reply to comment #1) 2 points: 1) Last times I installed mock it worked out of the box. Now it doesn't. Either I did something wrong here, or something needs some more explanation. 2) This is a .fc8 package, but there is no f8 config. There are fedora-7 and fedora-devel, but not fedora-8. F8 configs are in updates-testing (mock 0.8.7). Will be in updates next week. Mock 0.7 had some specfile magic that made symlinks on install, but 1) the spec was mostly re-written and this feature was dropped. This also had the effect of silently using the wrong config if user didnt pay attention. I'd rather let which config is the default be a site-local policy via admin-created local symlink. |